]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (#134468)
authorVictor Stinner <vstinner@python.org>
Thu, 22 May 2025 14:05:07 +0000 (16:05 +0200)
committerGitHub <noreply@github.com>
Thu, 22 May 2025 14:05:07 +0000 (16:05 +0200)
commit899c7dc283cb899fdfd79fb479b38352f48e454a
tree2f784981f462f761c9589a6f147c8dd36da57ff2
parent8c5e5557c64a8d6310b2a958f576d5eb245cb1b6
gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (#134468)

Set the LC_CTYPE locale to the LC_TIME locale even if
nl_langinfo(ALT_DIGITS) result is ASCII. The result is a list
separated by NUL characters and the code only checks the first list
item which can be ASCII whereas following items are non-ASCII.

Fix test__locale for the uk_UA locale on RHEL 7.

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