Message6315

Author pjenvey
Recipients alex.gronholm, otmarhumbel, pjenvey
Date 2011-01-07.00:19:23
SpamBayes Score 0.0001868044
Marked as misclassified No
Message-id <1294359563.77.0.999968710896.issue1693@psf.upfronthosting.co.za>
In-reply-to
Content
Alex is right. Our import system is converting sys.path items to java Strings via item.__str__().toString(). CPython in this case converts unicode to strings by encoding them via the filesystem encoding.

We don't support a filesystem encoding on Jython (at this point anyway). Instead we've just been 'passing thru' unicode when it's requested (e.g. os.listdir).

That is technically broken (you could end up with a plain str where ord(somestr[0]) > 255) but I think we'll continue getting away with this strategy until 2.6. This is one of the few leftover str/unicode weirdness bits carried over from 2.2 where unicode and str were pretty much the same object
History
Date User Action Args
2011-01-07 00:19:23pjenveysetmessageid: <1294359563.77.0.999968710896.issue1693@psf.upfronthosting.co.za>
2011-01-07 00:19:23pjenveysetrecipients: + pjenvey, otmarhumbel, alex.gronholm
2011-01-07 00:19:23pjenveylinkissue1693 messages
2011-01-07 00:19:23pjenveycreate