This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, gvanrossum, kennyluck, lemburg, loewis, pitrou, serhiy.storchaka, tchrist, vstinner
Date 2013-10-11.20:00:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381521619.91.0.850410659561.issue12892@psf.upfronthosting.co.za>
In-reply-to
Content
Updated patch addresses Victor's comments on Rietveld. Thank you Victor. The "surrogatepass" error handler now works with different spellings of encodings ("utf_32le", "UTF-32-LE", etc).

> I tested utf_16_32_surrogates_4.patch: surrogateescape with as encoder does not work as expected.

Yes, surrogateescape doesn't work with ASCII incompatible encodings and can't. First, it can't represent the result of decoding b'\x00\xd8' from utf-16-le or b'ABCD' from utf-32*. This problem is worth separated issue (or even PEP) and discussion on Python-Dev.
History
Date User Action Args
2013-10-11 20:00:20serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, gvanrossum, loewis, pitrou, vstinner, ezio.melotti, tchrist, kennyluck
2013-10-11 20:00:19serhiy.storchakasetmessageid: <1381521619.91.0.850410659561.issue12892@psf.upfronthosting.co.za>
2013-10-11 20:00:19serhiy.storchakalinkissue12892 messages
2013-10-11 20:00:19serhiy.storchakacreate