diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-12-04 00:34:47 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-12-04 00:34:47 (GMT) |
commit | d45c7f8d74d30de0a558b10e04541b861428b7c1 (patch) | |
tree | cb7c98ee584572691df70387baf586853f4298cf /Include/unicodeobject.h | |
parent | ca9f8b21c8f047501fbf19668339d1c67523de79 (diff) | |
download | cpython-d45c7f8d74d30de0a558b10e04541b861428b7c1.zip cpython-d45c7f8d74d30de0a558b10e04541b861428b7c1.tar.gz cpython-d45c7f8d74d30de0a558b10e04541b861428b7c1.tar.bz2 |
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.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r-- | Include/unicodeobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 363776b..a70585c 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1742,7 +1742,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_DecodeLocale( /* Encode a Unicode object to the current locale encoding. The encoder is strict is *surrogateescape* is equal to zero, otherwise the "surrogateescape" error handler is used. Return a bytes object. The string - cannot contain embedded null characters.. */ + cannot contain embedded null characters. */ PyAPI_FUNC(PyObject*) PyUnicode_EncodeLocale( PyObject *unicode, |