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 <>
> 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?
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: <>
2014-05-16 12:54:46vstinnerlinkissue13916 messages
2014-05-16 12:54:46vstinnercreate