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 ajaksu2, ezio.melotti, loewis, mhammond, vstinner
Date 2010-06-11.00:54:16
SpamBayes Score 0.00034800978
Marked as misclassified No
Message-id <1276217658.82.0.222857589843.issue850997@psf.upfronthosting.co.za>
In-reply-to
Content
I worked again on the patch. I opened new issues to prepare the new mbcs codec:
 - #8966: ctypes: remove implicit conversion between unicode and bytes
 - #8967: Create PyErr_GetWindowsMessage() function
 - #8969: Windows: use (mbcs in) strict mode to encode/decode filenames, and enable os.fsencode()

#8967 can be used to get the translated message of a mbcs encode error. PyErr_GetWindowsMessage() returns a PyUnicodeObject, whereas make_translate_exception() and PyUnicodeTranslateError_SetReason() expect a "char*". Another patch is requied: translate_reason_unicode.patch (attached to this issue, not tested). But I don't think that the message is very important for now :-)

#8784 (tarfile/Windows: Don't use mbcs as the default encoding) is still open.
History
Date User Action Args
2010-06-11 00:54:19vstinnersetrecipients: + vstinner, loewis, mhammond, ajaksu2, ezio.melotti
2010-06-11 00:54:18vstinnersetmessageid: <1276217658.82.0.222857589843.issue850997@psf.upfronthosting.co.za>
2010-06-11 00:54:17vstinnerlinkissue850997 messages
2010-06-11 00:54:16vstinnercreate