STINNER Victor <victor.stin...@haypocalc.com> added the comment: Let's try with something: pyunicode_asencodefsdefault.patch adds PyUnicode_EncodeFSDefault() function to uniformize how a unicode is converted to bytes. Fallback to UTF-8 if Py_FileSystemEncoding is not set (I should be ASCII, not UTF-8) and use surrogateescape error handler.
---------- keywords: +patch Added file: http://bugs.python.org/file17251/pyunicode_encodefsdefault.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8611> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com