diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-01 00:08:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 00:08:03 +0100 |
commit | ab71f8b793f7b42853ccd2a127ae7720adc5bcb4 (patch) | |
tree | eef5c69bee6a9eaf46c11a4e7f809ac27ea11e08 /PCbuild/pythoncore.vcxproj | |
parent | ef17fdbc1c274dc84c2f611c40449ab84824607e (diff) | |
download | cpython-git-ab71f8b793f7b42853ccd2a127ae7720adc5bcb4.tar.gz |
bpo-29571: Fix test_re.test_locale_flag() (GH-12099)
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.
Diffstat (limited to 'PCbuild/pythoncore.vcxproj')
0 files changed, 0 insertions, 0 deletions