Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105103

QString::localeAwareCompare() reports wrong result for more than 2Gi character long strings

    XMLWordPrintable

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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Eddy Edward Welbourne
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes