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

QSortFilterProxyModel not sorting correctly with Russian on QNX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 4.8.4
    • Core: Locales (i18n)
    • None
    • QNX 6.5 x86

    Description

      Please check the attached example, it sorts russian words in alphabetical order using QSortFilterProxyModel and setSortLocaleAware(), but "ЁЖИК" appears as the first item. This is not correct.
      Setting different _CS_LOCALE gives different results, but any of them is correct.
      QNX is probably using IEC_8859-5 http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.dinkum/topic/cpp/localedefs.html for Russian and not utf or ru_RU.KOI8-R what is used by Qt.
      The source encoding has been changed to 8859-5 and used QString::fromLocal8Bit to load it, but still "ЁЖИК" appears at the first place.
      The order follows the numerical order of codes http://en.wikipedia.org/wiki/ISO/IEC_8859-5 and not the correct order.

      Attachments

        1. basicsortfiltermodel.tar.gz
          20 kB
        2. img.bmp
          3.52 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dcape Dan Cape
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes