From 277f3345f2cc57f59503f87da4c0fb080787a525 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Thu, 23 Feb 2023 16:53:22 +0100 Subject: [PATCH] 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 --- util/locale_database/ldml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/locale_database/ldml.py b/util/locale_database/ldml.py index f5abc6811bd..f292235fb44 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