Message9276
A related bug is that one cannot start Jython with the current working directory being Unicode. This one fails in a similar fashion:
$ cd 首页
jimbaker:首页 jbaker$ jython27
Exception in thread "main" Traceback (most recent call last):
File "/Users/jbaker/jythondev/jython27/dist/Lib/site.py", line 62, in <module>
import os
File "/Users/jbaker/jythondev/jython27/dist/Lib/os.py", line 45, in <module>
from posix import *
java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
at org.python.core.PyString.<init>(PyString.java:60)
at org.python.core.PyString.<init>(PyString.java:66)
at org.python.core.Py.newString(Py.java:626)
at org.python.modules.posix.PosixModule.getEnviron(PosixModule.java:896)
at org.python.modules.posix.PosixModule.classDictInit(PosixModule.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
... |
|
Date |
User |
Action |
Args |
2014-12-30 18:02:21 | zyasoft | set | messageid: <1419962541.31.0.185947058373.issue2239@psf.upfronthosting.co.za> |
2014-12-30 18:02:21 | zyasoft | set | recipients:
+ zyasoft, jeff.allen, Arfrever |
2014-12-30 18:02:21 | zyasoft | link | issue2239 messages |
2014-12-30 18:02:21 | zyasoft | create | |
|