[issue8776] Bytes version of sys.argv
STINNER Victor
report at bugs.python.org
Wed Jul 28 02:53:03 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
"no byte-oriented representation of the command line is readily available."
Why not using the following recipe?
encoding = locale.getpreferredencoding()
sys.argvb = [arg.decode(encoding, 'surrogateescape') for arg in argv]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8776>
_______________________________________
More information about the Python-bugs-list
mailing list