qt5base-lts/tests/auto/testlib
Thiago Macieira 419f429031 QCoreApplication: force the process locale codec to UTF-8
As discussed in the mailing list and in the Qt Contributor Summit 2019.

Tested on Linux, macOS and FreeBSD, showing these fallbacks:
OS        environment         setlocale() call
FreeBSD   empty               "C.UTF-8"
FreeBSD   LC_ALL=C            "C.UTF-8"
Linux     empty               "C.UTF-8"
Linux     LC_ALL=C            "C.UTF-8"
Linux     LANG=en_US          "en_US.UTF-8"
Linux     LANG=de_DE@euro     "de_DE.UTF-8"
Linux     LANG=en_GB.iso885915 "en_GB.UTF-8"
Linux     LANG=hy_AM.armscii8 "hy_AM.UTF-8"
Linux     LANG=ja_JP.sjis     "ja_JP.UTF-8"
Linux     LANG=ru_RU.koi8r    "ru_RU.UTF-8"
macOS     empty               "UTF-8"
macOS     LC_ALL=C            "UTF-8"

Versions tested: FreeBSD 12.1, Linux w/ glibc 2.30, macOS 10.14.2.

See
* https://wiki.qt.io/Qt_Contributor_Summit_2019_-_QtCore
* https://lists.qt-project.org/pipermail/development/2019-October/037791.html

Change-Id: Ia2aa807ffa8a4c798425fffd15d97ddb4f35b0ae
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-05-05 15:34:15 +02:00
..
initmain QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00
outformat Test and document QTest::toHexRepresentation() 2018-11-08 15:22:21 +00:00
qabstractitemmodeltester Regenerate tests/auto/testlib 2019-11-13 13:36:00 +00:00
qsignalspy Regenerate tests/auto/testlib 2019-11-13 13:36:00 +00:00
selftests QCoreApplication: force the process locale codec to UTF-8 2020-05-05 15:34:15 +02:00
.prev_CMakeLists.txt Regenerate some of the test projects that do SUBDIRS += foo 2019-08-07 11:55:38 +00:00
CMakeLists.txt CMake: Enable testlib selftests 2020-03-18 16:28:30 +01:00
testlib.pro QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00