[issue9992] Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent

Antoine Pitrou report at bugs.python.org
Sun Oct 10 20:33:15 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Le dimanche 10 octobre 2010 à 18:23 +0000, Martin v. Löwis a écrit :
> Martin v. Löwis <martin at v.loewis.de> added the comment:
> 
> > For the command line arguments and environment variables, we don't have a lot 
> > of choices: locale or filesystem encodings. So Antoine and Martin: which 
> > encoding do you prefer?
> 
> I still propose to drop the fsname encoding. Then this question goes away.

I don't know what you mean by dropping, since OS X by construction needs
a filesystem encoding (utf-8) different from the locale encoding; and
Windows hardwires the decoding/encoding of bytes filenames using mbcs
regardless of the current codepage, IIRC.

So do you just mean the filesystem encoding should be hidden from the
user? What would be the benefit?

----------

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


More information about the Python-bugs-list mailing list