| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Use locale.getpreferredencoding() rather than locale.getlocale() to get the locale encoding. With some locales, locale.getlocale() returns the wrong encoding. For example, on Fedora 29, locale.getlocale() returns ISO-8859-1 encoding for the "en_IN" locale, whereas locale.getpreferredencoding() reports the correct encoding: UTF-8. (cherry picked from commit ab71f8b) Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
Please don't merge this backport yet. Please wait until the modified test_re is run on Windows buildbot workers to ensure that it works as expected. |
Sorry, something went wrong.
|
@vstinner: Status check is done, and it's a failure ❌ . |
Sorry, something went wrong.
|
@vstinner: Status check is done, and it's a failure ❌ . |
Sorry, something went wrong.
|
A trivial backport doesn't work. I wrote PR #12178 to implement the proper fix. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Use locale.getpreferredencoding() rather than locale.getlocale() to
get the locale encoding. With some locales, locale.getlocale()
returns the wrong encoding.
For example, on Fedora 29, locale.getlocale() returns ISO-8859-1
encoding for the "en_IN" locale, whereas
locale.getpreferredencoding() reports the correct encoding: UTF-8.
(cherry picked from commit ab71f8b)
Co-authored-by: Victor Stinner vstinner@redhat.com
https://bugs.python.org/issue29571