[issue9992] Command line arguments are not correctly decodedif locale and fileystem encodings aredifferent

STINNER Victor report at bugs.python.org
Thu Sep 30 12:53:39 CEST 2010


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

> A system where the filesystem encoding doesn't match the locale
> encoding is hard to get right.

Mmmh. The problem is maybe that the new PYTHONFSENCODING environment variable (added by #8622) introduced an horrible inconstency between Python and other applications. Other applications ignore PYTHONFSENCODING.

The simplest solution to fix this issue is to remove PYTHONFSENCODING variable. In this case, the user have to set LANG, LC_ALL or LC_CTYPE, instead of PYTHONFSENCODING, to set Python filesystem encoding.

----------

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


More information about the Python-bugs-list mailing list