qt5base-lts/src
Marc Mutz 955106c4fb QStringConverter: make name matching locale-independent
The existing name lookup code used C's toupper() function for
case-insensitive comparison. However, that function's result depends
on the current locale.

Since the matcher is supposed to match the likes of "iso-8859-1" and
"latin-1", matching may fail in locales, such as Turkish, where
toupper(i) is İ (or i, if the former isn't representable in the current
charset), but toupper(I) remains I, causing a False Negative.

To fix, use the US-ASCII-only QtMiscUtils::toAsciiLower() function,
which has the added advantage that it's inline.

Pick-to: 6.3 6.2
Change-Id: I70613c0167d84e3dc3d282c61c716b5dd0b3e6bb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-02-20 00:58:52 +00:00
..
3rdparty Install 3rdparty headers for static builds 2022-02-19 01:52:32 +01:00
android Android A11Y: handle valueChanged events 2022-02-15 17:51:33 +01:00
concurrent Do not highlight the Image Scaling Example anymore in Qt Creator 2022-02-17 18:16:42 +01:00
corelib QStringConverter: make name matching locale-independent 2022-02-20 00:58:52 +00:00
dbus CMake: Document source file properties 2022-02-15 15:44:51 +01:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui Install 3rdparty headers for static builds 2022-02-19 01:52:32 +01:00
network QHttp: Move the emission of requestSent 2022-02-18 13:44:41 +01:00
opengl Fix run time failure for UI autotests (INTEGRITY) 2022-01-25 02:59:36 +02:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport evdev: Prevent race condition in touch events processing 2022-01-26 01:01:31 +00:00
plugins Install 3rdparty headers for static builds 2022-02-19 01:52:32 +01:00
printsupport Fix UI mismatch when QPrinter::setDuplex 2022-02-18 12:19:17 +08:00
sql Check for null driver() before trying to exec() 2022-01-25 16:18:35 +01:00
testlib testlib/qasciikey: Add keypad navigation keys 2022-02-17 16:05:23 -05:00
tools typeNameForCast: use add_pointer instead of string manipulation 2022-02-18 13:44:41 +01:00
widgets Ensure QMainWindow has WA_TranslucentBackground when using unified toolbar 2022-02-18 15:26:32 +01:00
xml Remove QXml* from bootstrap lib 2022-02-09 19:49:37 +01:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00