]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044)
authorVictor Stinner <vstinner@redhat.com>
Mon, 3 Sep 2018 15:05:18 +0000 (17:05 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Sep 2018 15:05:18 +0000 (17:05 +0200)
commit8ea09110d413829f71d979d8c7073008cb87fb03
treebf2072da77a058acc78fa508843bee7b988aba37
parentf01b2a1b84ee08df73a78cf1017eecf15e3cb995
_Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044)

bpo-34544: If _Py_CoerceLegacyLocale() fails to coerce the C locale,
restore the LC_CTYPE locale to the its previous value.
Python/pylifecycle.c