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

QCollatorSortKey fails on macOS and Windows

XMLWordPrintable

    • macOS

      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.

        For Gerrit Dashboard: QTBUG-58737
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes