Skip to content

Commit 00c80df

Browse files
authored
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.
1 parent 1d28f9a commit 00c80df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test__locale.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def accept(loc):
8989
'ar_AE': (100, {0: '\u0660', 10: '\u0661\u0660', 99: '\u0669\u0669'}),
9090
'bn_IN': (100, {0: '\u09e6', 10: '\u09e7\u09e6', 99: '\u09ef\u09ef'}),
9191
}
92+
if sys.platform == 'cygwin':
93+
count, samples = known_alt_digits['ja_JP']
94+
known_alt_digits['ja_JP'] = (101, samples)
9295

9396
known_era = {
9497
'C': (0, ''),

0 commit comments

Comments
 (0)