https://github.com/python/cpython/commit/00c80df8ccc18e9cd72596a37a275fd2e20f96cc
commit: 00c80df8ccc18e9cd72596a37a275fd2e20f96cc
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-05-22T21:31:12+02:00
summary:
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.
files:
M Lib/test/test__locale.py
diff --git a/Lib/test/test__locale.py b/Lib/test/test__locale.py
index 11b2c9545a1b43..29a29ca0c65097 100644
--- a/Lib/test/test__locale.py
+++ b/Lib/test/test__locale.py
@@ -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, ''),
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]