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

QCollatorSortKey fails on macOS and Windows

    XMLWordPrintable

Details

    • macOS

    Description

      QCollatorSortKey was never unit-tested, and trying to add one, it was found to fail on macOS, where "fail" means that the implementation does not live up to the fundamental property of sort keys, namely that

      ∀ lhs, rhs ∈ Domain(QString), c ∈ Domain(QCollator):
         sign(c.compare(lhs, rhs)) == sign(c.sortKey(lhs).compare(c.sortKey(rhs))
      

      (where sign := i < 0 ? -1 : i > 0 : 1 : 0).

      See https://codereview.qt-project.org/184829 for the failures.

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              mmutz Marc Mutz
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes