diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-02-23 16:53:22 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-02-28 20:14:18 +0100 |
commit | 277f3345f2cc57f59503f87da4c0fb080787a525 (patch) | |
tree | bbe47060eb32ebd20586fb282c27804e1aa50809 /util/locale_database/ldml.py | |
parent | 170fadadd67fa97621a7782ea845c314bd9ee09d (diff) |
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>
Diffstat (limited to 'util/locale_database/ldml.py')
-rw-r--r-- | util/locale_database/ldml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/locale_database/ldml.py b/util/locale_database/ldml.py index f5abc6811b..f292235fb4 100644 --- a/util/locale_database/ldml.py +++ b/util/locale_database/ldml.py @@ -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 |