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

Antoine Pitrou report at bugs.python.org
Fri Oct 8 22:30:37 CEST 2010


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

> The important point is that we have to use the same encoding to decode 
> and encode command line arguments.

I don't think I agree with this. It's only important when you run a Python interpreter using subprocess, but the point of using subprocess is to run something *else* than Python. This something else generally expects filenames in their correct bytes representation, not in a mojibaked version hand-tuned for Python.

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list