]> granicus.if.org Git - python/commit
Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 20 Oct 2010 22:58:25 +0000 (22:58 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 20 Oct 2010 22:58:25 +0000 (22:58 +0000)
commitf933e1ab6fdea76973384e38ea95520de422c340
tree88a9a55449b4eb3a2167630127f2b9640f678e3e
parent073f759d65118674c4c7b82f778dde44ae22c6c9
Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.
Lib/test/test_cmd_line.py
Misc/NEWS
Modules/python.c
Objects/unicodeobject.c