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 Arfrever, lemburg, loewis, pitrou, vstinner
Date 2010-07-28.01:29:22
SpamBayes Score 0.0045951013
Marked as misclassified No
Message-id <>
I tried the patch on my import_unicode branch and it doesn't work if the locale encoding is not ASCII (as the current code doesn't work if the locale encoding is not UTF-8, #8611).

If Py_FileSystemUnicodeEncoding is NULL: PyUnicode_EncodeFSDefault() should use mbcstowcs() and PyUnicode_DecodeFSDefault() should use wcstombcs(). They may reuse _Py_wchar2char() and _Py_char2wchar().

"ascii" should be used in initfsencoding().
Date User Action Args
2010-07-28 01:29:24vstinnersetrecipients: + vstinner, lemburg, loewis, pitrou, Arfrever
2010-07-28 01:29:24vstinnersetmessageid: <>
2010-07-28 01:29:23vstinnerlinkissue8725 messages
2010-07-28 01:29:22vstinnercreate