]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044) (GH-9046)
authorVictor Stinner <vstinner@redhat.com>
Mon, 3 Sep 2018 20:17:07 +0000 (22:17 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Sep 2018 20:17:07 +0000 (22:17 +0200)
commit84b0129b5e0a0e22aad22ae8db2e3833a228aa57
tree95a8efe7723fd56d94f04e908ba45ce9f038448a
parentf4c865eda8f57dedaeaa16530ab6f1024bfb94de
_Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044) (GH-9046)

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

(cherry picked from commit 8ea09110d413829f71d979d8c7073008cb87fb03)
Python/pylifecycle.c