Message5555

Author clach04
Recipients clach04
Date 2010-02-25.23:01:14
SpamBayes Score 2.2613458e-09
Marked as misclassified No
Message-id <1267138876.07.0.25337713193.issue1565@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-02-25 23:01:16clach04setrecipients: + clach04
2010-02-25 23:01:16clach04setmessageid: <1267138876.07.0.25337713193.issue1565@psf.upfronthosting.co.za>
2010-02-25 23:01:16clach04linkissue1565 messages
2010-02-25 23:01:14clach04create