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

Martin v. Löwis report at bugs.python.org
Sat Oct 9 12:47:48 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

> The most likely values to be non-ASCII are, therefore, file paths. So it
> would make sense to also use the filesystem encoding for environment
> variables (so as to satisfy the common case).

-1. Environment variables are typically set in a text editor or on
the command line, so they will typically have the locale's encoding.

Applications that wish to support the case that fsencoding != locale
can recode the file names if desired, or use environb in the first
place.

If the mere existence of the fsname encoding leads to that much
confusion, I think I also support its removal.

----------

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


More information about the Python-bugs-list mailing list