Issue1565
Created on 2010-02-25.23:01:16 by clach04, last changed 2010-02-26.19:58:23 by pjenvey.
msg5555 (view) |
Author: Chris Clark (clach04) |
Date: 2010-02-25.23:01:14 |
|
http://www.jython.org/docs/library/codecs.html lists shift_jis (amongst others) as a supported codec in Jython (2.5.1) this does NOT appear to be the case:
C:\jython2.5.1>jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_02
Type "help", "copyright", "credits" or "license" for more information.
>>> x=''
>>> x.decode('shift_jis')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
LookupError: unknown encoding 'shift_jis'
it maybe that this is due to a missing codecs_jp (_codecs_jp ) module.
C:\jython2.5.1\Lib\encodings>C:\jython2.5.1\jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_02
Type "help", "copyright", "credits" or "license" for more information.
>>> import shift_jis
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "shift_jis.py", line 7, in <module>
import _codecs_jp, codecs
ImportError: No module named _codecs_jp
Not sure if this is related to http://bugs.jython.org/issue1066 or not (issue 1066 mentions this will be fixed in 2.5.1) BUT the documentation clearly lists shift_jis.
|
msg5556 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2010-02-26.19:58:22 |
|
Really a dupe of #1066. A lot of our docs are just copies of CPython 2.5's, in the future we're going to begin customizing them for Jython, but right now we're not really setup for that
|
|
Date |
User |
Action |
Args |
2010-02-26 19:58:23 | pjenvey | set | status: open -> closed resolution: duplicate messages:
+ msg5556 nosy:
+ pjenvey |
2010-02-25 23:01:16 | clach04 | create | |
|