[issue9630] Reencode filenames when setting the filesystem encoding

STINNER Victor report at bugs.python.org
Sat Sep 4 02:10:46 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Another possibility is to use _Py_char2wchar() + PyUnicode_FromWideChar() / _Py_wchar2char() + PyUnicode_AsWideChar() to decode / encode filenames. These functions use the locale encoding. This solution was possible in Python 3.1, but no more in Python 3.2 because of the PYTHONFSENCODING environment variable.

Even if I don't like my own solution, I don't see better solution.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9630>
_______________________________________


More information about the Python-bugs-list mailing list