diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-20 22:58:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-20 22:58:25 (GMT) |
commit | f933e1ab6fdea76973384e38ea95520de422c340 (patch) | |
tree | 88a9a55449b4eb3a2167630127f2b9640f678e3e /Misc | |
parent | 073f759d65118674c4c7b82f778dde44ae22c6c9 (diff) | |
download | cpython-f933e1ab6fdea76973384e38ea95520de422c340.zip cpython-f933e1ab6fdea76973384e38ea95520de422c340.tar.gz cpython-f933e1ab6fdea76973384e38ea95520de422c340.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ What's New in Python 3.2 Beta 1? Core and Builtins ----------------- +- 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. + - Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expects filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode. |