summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-12-04 00:34:47 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-12-04 00:34:47 (GMT)
commitd45c7f8d74d30de0a558b10e04541b861428b7c1 (patch)
treecb7c98ee584572691df70387baf586853f4298cf /Include
parentca9f8b21c8f047501fbf19668339d1c67523de79 (diff)
downloadcpython-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')
-rw-r--r--Include/unicodeobject.h2
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,