[issue9632] Remove sys.setfilesystemencoding()

STINNER Victor report at bugs.python.org
Wed Aug 25 02:32:36 CEST 2010


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

> Think of e.g. embedded Python interpreters or py2exe-style applications
> running on Linux or other systems that don't use Unicode APIs 
> for FS-interaction or have fixed FS-encodings.

What is the problem here? Python does guess the filesystem encoding. If the encoding is "wrong" (not the value expected by the user), filenames are not displayed correctly (mojibake) but it does just work. Anyway, why is it not possible to use PYTHONFSENCODING here? Are you talking to Python modules loaded from a non-ascii path?

Sorry, but I do not understand.

----------

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


More information about the Python-bugs-list mailing list