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

QCollator compare does not work on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.0
    • QPA
    • None
    • Qt 5.4.0
      Android 4.4.2
      Galaxy Tab 4
    • Android

    Description

      Using QCollator::compare() on android for some locales does not work as expected:

      QCollator collator(QLocale("nn_NO");
      collator.setCaseSensitivity(Qt::CaseSensitive);
      qDebug() << "compare(\"æ\", \"å\")=" << collator.compare(QString("æ"), QString("å"));
      

      On Android:

      W/Qt ( 7483): (null):0 ((null)): Only default locale supported with the posix collation implementation
      D/Qt ( 7483): (null):0 ((null)): compare("æ", "å")= 1

      Works fine/as expected on Linux:

      compare("æ", "å")= -1

      Attachments

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

        Activity

          People

            rampe Rami Potinkara
            hkaelber Holger Kaelberer
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes