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 vstinner
Recipients ezio.melotti, kennyluck, loewis, python-dev, serhiy.storchaka, vstinner
Date 2014-05-16.12:54:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400244886.39.0.688509633686.issue13916@psf.upfronthosting.co.za>
In-reply-to
Content
> But an exception reports about CP_UTF8.

Oh, that's my fault! And it is a bug: "CP_UTF8" is the Windows constant, but it is not a valid Python codec name.

Attached patch cp_encoding_name.patch fixes this issue.

I don't think that Py_LOWER() is needed because the encoding name of Unicode errors from the code page codec is "cpXXX". It cannot be "CPXXX", except if you pass create manually an Unicode error exception.

What do you think? Py_LOWER or not?
History
Date User Action Args
2014-05-16 12:54:46vstinnersetrecipients: + vstinner, loewis, ezio.melotti, python-dev, kennyluck, serhiy.storchaka
2014-05-16 12:54:46vstinnersetmessageid: <1400244886.39.0.688509633686.issue13916@psf.upfronthosting.co.za>
2014-05-16 12:54:46vstinnerlinkissue13916 messages
2014-05-16 12:54:46vstinnercreate