]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-133740: Fix regression in locale.nl_langinfo(ALT_DIGITS) (GH-136237) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Jul 2025 11:04:30 +0000 (13:04 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 11:04:30 +0000 (11:04 +0000)
commit150262db4c4a17aea0b7de411efa91f1eb7e70aa
treed5cad71e3053a851b572fd50072837b9d92861d4
parent4bc9c018d1a04cf15a8cc35154949bf040c81c9c
[3.14] gh-133740: Fix regression in locale.nl_langinfo(ALT_DIGITS) (GH-136237) (GH-136240)

There is no need to temporary switch locale for items ALT_DIGITS and ERA
if the nl_langinfo() result is empty (most locales).
(cherry picked from commit 5c984ae35e30f0533e6cc727d23cc158decf001c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Modules/_localemodule.c