[New-bugs-announce] [issue8776] Bytes version of sys.argv
report at bugs.python.org
Thu May 20 14:10:56 CEST 2010
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
In some situations, the encoding of the command line is incorrect or unknown. sys.argv is decoded with the file system encoding which can be wrong. Eg. see issue #4388 (ok, it's a bug, it should be fixed).
As os.environb, it would be useful to have bytes version of sys.argv to have able to decide the encoding used to decode each argument, or to manipulate bytes if we don't care about the encoding.
See also issue #8775 which propose to add a new encoding to decode sys.argv.
components: Interpreter Core, Unicode
title: Bytes version of sys.argv
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce