STINNER Victor <[email protected]> added the comment:
Since r85765 (issue #4388), always use UTF-8 to decode the command line
arguments on Mac OS X, not the locale encoding. Which means that the
pseudo-code becomes:
if os.name != 'nt':
if sys.platform == 'darwin':
encoding = 'utf-8'
else:
encoding = locale.getpreferredencoding()
sys.argvb = [arg.decode(encoding, 'surrogateescape') for arg in sys.argv]
sys.argvb should be synchronized with sys.argv, as os.environb with os.environ.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com