summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoafontdialoghelper.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-05-29 13:12:28 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-06-04 10:39:53 +0200
commit9dd8e655cdd26eeaae30645b7fe013d9a696547f (patch)
treeeffe627c86f8023581885dd914b31ec46cfee880 /src/plugins/platforms/cocoa/qcocoafontdialoghelper.h
parent135204bdf6a0e6b202fcde7248ac71b1a5bc6109 (diff)
Limit QByteArray's 8-bit support to ASCII
Previously it handled Latin-1, which made it incompatible with UTF-8, which is now our preferred 8-bit encoding. For Qt6 it is limited to ASCII. Adjusted tests to match. QLatin1String::compare() turned out to be relying on qstrnicmp()'s Latin-1 handling. Removed some spurious Q_UNLIKELY()s and tidied up code a little in the process. [ChangeLog][QtCore][Important Behavior Changes] Encoding-dependent features of QByteArrray are now limited to ASCII, where previously they worked for the whole of Latin-1. This affects case-insensitive comparison, notably including qstricmp() and qstrnicmp(), and case-transforming functions. Fixes: QTBUG-84323 Change-Id: I2925d9908f8654599195a2860847b17083911b41 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoafontdialoghelper.h')
0 files changed, 0 insertions, 0 deletions