]> granicus.if.org Git - python/commit
Issue #16455: On FreeBSD and Solaris, if the locale is C, the
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Dec 2012 00:34:47 +0000 (01:34 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Dec 2012 00:34:47 +0000 (01:34 +0100)
commitd45c7f8d74d30de0a558b10e04541b861428b7c1
treecb7c98ee584572691df70387baf586853f4298cf
parentca9f8b21c8f047501fbf19668339d1c67523de79
Issue #16455: On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
Include/unicodeobject.h
Lib/test/test_cmd_line_script.py
Misc/NEWS
Objects/unicodeobject.c
Python/fileutils.c