FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.6] bpo-32555: Fix locale encodings by vstinner · Pull Request #5193 · python/cpython · GitHub

Repository navigation

[3.6] bpo-32555: Fix locale encodings - #5193

Merged
vstinner merged 3 commits into
python:3.6from
vstinner:fix_locale_enc
Jan 15, 2018
Merged

vstinner merged 3 commits into
python:3.6from
vstinner:fix_locale_enc

Conversation

vstinner commented Jan 15, 2018 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

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.

https://bugs.python.org/issue32555

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
vstinner merged commit b92c159 into python:3.6 Jan 15, 2018
vstinner deleted the fix_locale_enc branch January 15, 2018 22:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL