gh-149879: Fix test__locale on Cygwin (#150248)

On Cygwin with the LC_TIME locale "ja_JP", nl_langinfo(ALT_DIGITS)
returns 101 items instead of 100.
This commit is contained in:
Victor Stinner 2026-05-22 21:31:12 +02:00 committed by GitHub
parent 1d28f9aade
commit 00c80df8cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,6 +89,9 @@ def accept(loc):
'ar_AE': (100, {0: '\u0660', 10: '\u0661\u0660', 99: '\u0669\u0669'}),
'bn_IN': (100, {0: '\u09e6', 10: '\u09e7\u09e6', 99: '\u09ef\u09ef'}),
}
if sys.platform == 'cygwin':
count, samples = known_alt_digits['ja_JP']
known_alt_digits['ja_JP'] = (101, samples)
known_era = {
'C': (0, ''),