Record a recent discovery: Suzhou isn't hanidec
Revise a comment in ldml.py about Suzhou "digits", since it turns out they aren't the same as hanidec, which is far from contiguous. Change-Id: Ia3947dbc5a927772026e55fe197c8ebce2540da2 Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
This commit is contained in:
parent
170fadadd6
commit
277f3345f2
@ -269,7 +269,8 @@ class LocaleScanner (object):
|
||||
assert len(digits) == 10
|
||||
zero = digits[0]
|
||||
# Qt's number-formatting code assumes digits are consecutive
|
||||
# (except Suzhou, CLDR's hanidec - see QTBUG-85409):
|
||||
# (except Suzhou - see QTBUG-85409 - which shares its zero
|
||||
# with CLDR's very-non-contiguous hanidec):
|
||||
assert all(ord(c) == i + (0x3020 if ord(zero) == 0x3007 else ord(zero))
|
||||
for i, c in enumerate(digits[1:], 1))
|
||||
yield 'zero', zero
|
||||
|
Loading…
x
Reference in New Issue
Block a user