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

STINNER Victor report at bugs.python.org
Mon Oct 11 23:16:39 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

issue9992.patch:
 - Remove PYTHONFSENCODING environment variable
 - Mac OS X: Use utf-8 to decode command line arguments
 - Fix issue #9992 (this issue): attached test, locale_fs_encoding.py, pass
 - Fix issue #9988
 - Fix issue #10014
 - Fix issue #10039

$ diffstat issue9992.patch 
 Doc/using/cmdline.rst       |   12 ------------
 Doc/whatsnew/3.2.rst        |    6 ------
 Lib/test/test_os.py         |   30 ------------------------------
 Lib/test/test_subprocess.py |    4 ----
 Lib/test/test_sys.py        |   29 -----------------------------
 Modules/main.c              |    3 ---
 Modules/python.c            |   10 +++++++++-
 Python/pythonrun.c          |   22 ++++++----------------
 8 files changed, 15 insertions(+), 101 deletions(-)

I like such patch: it removes more code than it adds, but it fixes 4 different issues!

I didn't tested the patch specific to OSX (use utf8 to decode command line arguments).

----------
Added file: http://bugs.python.org/file19190/issue9992.patch

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


More information about the Python-bugs-list mailing list