qt5base-lts/util/locale_database
Edward Welbourne cabd8f860b Ensure we use UTF-8 for the emitted QLocaleXML data file
Python helpfully uses a sensible locale when stdout is a tty but uses
the system (not the filesystem) default encoding, which may be ascii
and unable to encode some of the data we need to save. So brute force
kludge it to ensure emit.encoding is UTF-8 when writing the output
we'll read as UTF-8 anyway.

(This matches dev's commit 0ef79d94f6
for the reworked version of the script.)

Task-number: QTBUG-79902
Change-Id: I60ddc896a308c06e01fa87e8e18e112faa17d601
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
2020-04-02 19:44:06 +01:00
..
testlocales Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
cldr2qlocalexml.py Ensure we use UTF-8 for the emitted QLocaleXML data file 2020-04-02 19:44:06 +01:00
cldr2qtimezone.py Move cldr2qtimezone.py's CLDR-reading to a CldrAccess class 2020-04-02 19:43:13 +01:00
cldr.py Take CLDR's distinguished attributes into account 2020-04-02 19:43:28 +01:00
dateconverter.py Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
enumdata.py Update CLDR to v36 2019-10-25 11:44:48 +02:00
formattags.txt Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
ldml.py Check all matches for each XPath when searching 2020-04-02 19:43:43 +01:00
localetools.py Add tools to localetools to facilitate source file recreation 2020-04-02 19:42:45 +01:00
qlocalexml2cpp.py Purge a stray space from calendar locale data 2020-04-02 19:44:01 +01:00
qlocalexml.py Move some shared code to a localetools module 2020-04-02 19:42:40 +01:00
README Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00

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.