From d8e1416977a83bc6b3abb095c49530393ea22fcc Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Fri, 13 Sep 2024 12:11:16 +0200 Subject: [PATCH] Add a note to README about encoding errors on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using the default system encoding cldr2qlocalexml.py and qlocalexml2cpp.py may terminate with encoding errors on Windows. Warn the user to set the PYTHONUTF8 environment variable to 1 before running those scripts to avoid encoding errors. Change-Id: I315a45072cb6ea516d3e9bb7613c6f251792ec59 Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit b3ef2fdd8b99c6920a382fbbc417209bf436c3f3) Reviewed-by: Qt Cherry-pick Bot --- util/locale_database/README | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/locale_database/README b/util/locale_database/README index 460f51993af..0f7f6978568 100644 --- a/util/locale_database/README +++ b/util/locale_database/README @@ -10,3 +10,6 @@ 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.