Message6399

Author yyamano
Recipients yyamano
Date 2011-02-16.03:34:57
SpamBayes Score 3.2290302e-09
Marked as misclassified No
Message-id <1297827297.52.0.743476588129.issue1707@psf.upfronthosting.co.za>
In-reply-to
Content
Jython doesn't allow to use unmapped unicode codepoint. CPython works fine with it.

% uname -a
Darwin amp.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

% cat foo.py
# Taken from CPythonLib/test/test_multibytecodec_support.py

unmappedunicode = u'\udeee' # a unicode codepoint that is not mapped.

% ./dist/bin/jython foo.py
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-8: illegal Unicode character
% ./dist/bin/jython --version
Jython 2.5.2rc3

% python2.6 foo.py
% python2.6 --version
Python 2.6.5

% ./dist/bin/jython
Jython 2.5.2rc3 (trunk:7195, 2 16 2011, 11:23:40) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_22
Type "help", "copyright", "credits" or "license" for more information.
>>> unmappedunicode = u'\udeee'
...
History
Date User Action Args
2011-02-16 03:34:57yyamanosetmessageid: <1297827297.52.0.743476588129.issue1707@psf.upfronthosting.co.za>
2011-02-16 03:34:57yyamanosetrecipients: + yyamano
2011-02-16 03:34:57yyamanolinkissue1707 messages
2011-02-16 03:34:57yyamanocreate