[issue10039] python é.py fails with UnicodeEncodeError if PYTHONFSENCODING is used

STINNER Victor report at bugs.python.org
Wed Oct 13 02:25:49 CEST 2010


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

> Is it always correct to decode a filename with the locale encoding
> on Unix?

Do you know something better than the locale encoding? I don't.

> Can’t each filesystem have its own encoding?

Yes, but how do you get the encoding of each filesystem? I think that few or no application support such case without mojibake. Backup programs can use the "raw" (bytes) API of Python 3 to avoid all encoding issues.

--

As wrote R. David Murray, read issue #9992 if you would like to know more about this problem and the different proposed solutions. I voted for removal of PYTHONFSENCODING which fix most issues.

----------

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


More information about the Python-bugs-list mailing list