mirror of
https://github.com/python/cpython.git
synced 2026-06-08 02:41:11 +00:00
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:
parent
1d28f9aade
commit
00c80df8cc
1 changed files with 3 additions and 0 deletions
|
|
@ -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, ''),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue