qtbase/util/locale_database
Mårten Nordheim 8bc8951f7f cldr2qlocalexml/localetools: Open files as UTF-8
To avoid errors like:
'charmap' codec can't encode character '\u02bc' in position <x>

Pick-to: 6.10 6.9 6.8
Task-number: QTBUG-137782
Change-Id: I100485c14121e5ffad7b0106e617b7f0afd7822e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2025-07-03 13:49:55 +02:00
..
testlocales Update CLDR to v47 2025-06-19 15:13:33 +02:00
README Add a note to README about encoding errors on windows 2024-09-17 19:12:04 +02:00
cldr.py QLocale: fix likely subtags to include und -> en_Latn_US 2024-12-05 14:42:56 +01:00
cldr2qlocalexml.py cldr2qlocalexml/localetools: Open files as UTF-8 2025-07-03 13:49:55 +02:00
dateconverter.py Improve fidelity of approximation to CLDR zone representations 2024-04-22 11:58:25 +02:00
enumdata.py Update CLDR to v46 2025-01-06 18:56:19 +01:00
formattags.txt
iso639_3.py
ldml.py Skip zone naming with no CLDR data 2025-01-29 16:53:08 +01:00
localetools.py cldr2qlocalexml/localetools: Open files as UTF-8 2025-07-03 13:49:55 +02:00
qlocalexml.py QLocale: fix likely subtags to include und -> en_Latn_US 2024-12-05 14:42:56 +01:00
qlocalexml.rnc Include timezone L10n data in QLocaleXML files 2024-08-20 18:43:05 +02:00
qlocalexml2cpp.py Add terminal rows to various QtTimeZoneLocale tables 2025-02-10 14:59:36 +01:00
zonedata.py Simplify UTC offset ID data by computing the offsets 2024-06-02 15:25:13 +02:00

README

locale_database is used to generate qlocale data from CLDR.

CLDR is the Common Locale Data Repository, a database for localized
data (like date formats, country names etc).  It is provided by the
Unicode consortium.

See cldr2qlocalexml.py for how to run it and qlocalexml2cpp.py to
update the locale data tables (principally text/qlocale_data_p.h,
time/q*calendar_data_p.h and time/qtimezone*_data_p.h under
src/corelib/). See enumdata.py and zonedata.py for when and how to
update the data they provide. You shall definitely need to pass
--no-verify or -n to git commit for these changes.

NOTE: on Windows it is advisable to set the environment variable
PYTHONUTF8 to 1 before running the scripts to avoid encoding errors.