[Development] RFC: Defaulting to or enforcing UTF-8 locales on Unix systems

Simon Hausmann Simon.Hausmann at qt.io
Mon Apr 27 19:05:39 CEST 2020


Hi,

I can't really think of anything that's changed in the default macOS setup that would affect the locale encoding.

The scripts that are run are here:

    https://code.qt.io/cgit/qt/qt5.git/tree/coin/provisioning/qtci-macos-10.14-x86_64

but I'm not even sure that it's possible to "misconfigure" a macOS installation to not use utf-8.

Can you think of any setting to check? Or do you have a little test program to run to verify?


Simon
________________________________
From: Development <development-bounces at qt-project.org> on behalf of Thiago Macieira <thiago.macieira at intel.com>
Sent: Monday, April 27, 2020 18:13
To: development at qt-project.org <development at qt-project.org>
Subject: Re: [Development] RFC: Defaulting to or enforcing UTF-8 locales on Unix systems

On Sunday, 26 April 2020 09:22:00 PDT Thiago Macieira wrote:
> On Thursday, 31 October 2019 14:11:05 PDT Thiago Macieira wrote:
> > Re: https://codereview.qt-project.org/c/qt/qtbase/+/275152 (WIP: Move
> > QTextCodec support out of QtCore)
> > See also: https://www.python.org/dev/peps/pep-0538/
> >
> >         https://www.python.org/dev/peps/pep-0540/
>
> Just sending to the mailing list to get more attention:
>
> The change above cannot integrate because the new warning breaks the QtTest
> self-tests because the environment where the tests are run is not UTF-8. Can
> the CI be fixed, please?

Apologies, I replied thinking the link above was to my change, but that was
Rainer's that has since been superseded by Lars's. The change I want to
integrate is:

https://codereview.qt-project.org/c/qt/qtbase/+/282359

The error from the CI is:

 FAIL!  : tst_Selftests::runSubTest(assert lightxml + stdout junitxml)
'err.isEmpty()' returned FALSE. (Detected system locale encoding (US-ASCII,
locale "C") is not UTF-8.
Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
reconfigure your locale. See the locale(1) manual for more information.
)

Note this warning is on a Mac, which is an UTF-8 system. Can the CI please set
up the environment properly?

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products



_______________________________________________
Development mailing list
Development at qt-project.org
https://lists.qt-project.org/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200427/be8dd7a0/attachment-0001.html>


More information about the Development mailing list