diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2018-01-15 23:43:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 23:43:24 +0100 |
commit | b92c159efada05b3a5ff9d0dbce3fcb2334631f6 (patch) | |
tree | e0c7a7c67133cd4b7e6b17383ff69e2b7e5e11cc /Python/graminit.c | |
parent | 5f959c4f9eca404b8bc4bc6348fed27c4b907b89 (diff) | |
download | cpython-git-b92c159efada05b3a5ff9d0dbce3fcb2334631f6.tar.gz |
[3.6] bpo-32555: Fix locale encodings (#5193)
On FreeBSD and Solaris, os.strerror() now always decode the byte
string from the current locale encoding, rather than using
ASCII/surrogateescape in some cases.
Changes:
* Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() which has an
additional current_locale parameter.
* PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
* PyUnicode_EncodeLocale() now always use the current locale
* encoding, instead of using Py_DecodeLocale()/Py_EncodeLocale().
* Document encoding in Py_DecodeLocale() and Py_EncodeLocale()
documentations.
* Add USE_FORCE_ASCII define to not define
decode_ascii_surrogateescape() on Android.
Diffstat (limited to 'Python/graminit.c')
0 files changed, 0 insertions, 0 deletions