Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision b92c159efada05b3a5ff9d0dbce3fcb2334631f6 authored by Victor Stinner on 15 January 2018, 22:43:24 UTC, committed by GitHub on 15 January 2018, 22:43:24 UTC
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.
1 parent 5f959c4
Tip revision: b92c159efada05b3a5ff9d0dbce3fcb2334631f6 authored by Victor Stinner on 15 January 2018, 22:43:24 UTC
[3.6] bpo-32555: Fix locale encodings (#5193)
[3.6] bpo-32555: Fix locale encodings (#5193)
Tip revision: b92c159
File | Mode | Size |
---|---|---|
.github | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Programs | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 582 bytes |
.gitattributes | -rw-r--r-- | 798 bytes |
.gitignore | -rw-r--r-- | 1.3 KB |
.hgeol | -rw-r--r-- | 1.0 KB |
.hgignore | -rw-r--r-- | 1.3 KB |
.hgtags | -rw-r--r-- | 8.7 KB |
.travis.yml | -rw-r--r-- | 4.3 KB |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 59.7 KB |
README.rst | -rw-r--r-- | 9.1 KB |
aclocal.m4 | -rw-r--r-- | 13.0 KB |
config.guess | -rwxr-xr-x | 43.2 KB |
config.sub | -rwxr-xr-x | 35.7 KB |
configure | -rwxr-xr-x | 478.4 KB |
configure.ac | -rw-r--r-- | 159.0 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 41.1 KB |
setup.py | -rw-r--r-- | 101.3 KB |
Computing file changes ...