Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Description
This code fails on 64-bit Windows platforms, and with ICU:
const QString lhs(qsizetype(INT_MAX) + 1, u'A'); const QString rhs = lhs + u'A'; assert(QString::localeAwareCompare(lhs, rhs) < 0);
The APIs we use don't support more than INT_MAX characters (CompareStringsEx, QCollator).
Attachments
Issue Links
- relates to
-
QTBUG-105038 QCollator is limited to ≤ 2Gi characters
- Open
-
QTBUG-105100 Review QLocale/Win for INT_MAX issues.
- Closed
-
QTBUG-105105 QStringConverter/Win is not 64-bit-clean
- Closed
- resulted from
-
QTBUG-103531 Finish migration to qsizetype [qtbase/src/corelib/text]
- Closed