summaryrefslogtreecommitdiff
path: root/Include/unicodeobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-12-04 01:34:47 +0100
committerVictor Stinner <victor.stinner@gmail.com>2012-12-04 01:34:47 +0100
commitd45c7f8d74d30de0a558b10e04541b861428b7c1 (patch)
treecb7c98ee584572691df70387baf586853f4298cf /Include/unicodeobject.h
parentca9f8b21c8f047501fbf19668339d1c67523de79 (diff)
downloadcpython-git-d45c7f8d74d30de0a558b10e04541b861428b7c1.tar.gz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 363776bdf0..a70585c1e6 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,