[Development] RFC: Defaulting to or enforcing UTF-8 locales on Unix systems
edward.welbourne at qt.io
Mon Mar 20 14:44:30 CET 2023
Thiago Macieira (31 October 2019 22:11) wrote :
> This RFC (...) is meant to discuss how we'll deal with locales on Unix
> systems on Qt 6. This does not apply to Windows because on Windows we
> cannot reasonably be expected to use UTF-8 for the 8-bit encoding.
The GNU make mailing list currently has a thread (starts at ) about
handling of encodings on Windows.
The discussion there seems to indicate that setting the system code-page
to UTF-8 can be done in a way that interoperates gracefully with other
processes and the file system, presumably thanks to the system being
substantially UTF-16-based, so all 8-bit encodings go via that anyway.
The means to achieve this appear  to hinge on setting the active
codepage for the application in a manifest file, that it gets combined
with after it is linked.
There do appear to be some vagaries still, it may depend on UCRT and I'm
not sure I've really understood it all, but it looks like we may, in
time, be able to consistently use UTF-8 as 8-bit encoding on Windows.
More information about the Development