STINNER Victor <victor.stin...@haypocalc.com> added the comment:

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().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8725>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to