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

QChar::isPrint() and category() not always right

XMLWordPrintable

    • Ida09ad657c4b012eca654fcb79608b7cdeb5d60d

      I sometimes use the "latin capital letter sharp S" character (U+1E9E). Because I can't type it on my keyboard, I use KCharSelect. This worked fine, until a while ago, when that letter was all of a sudden marked as "non-printable" and not displayed anymore.

      Reporting this to and discussing with KDE upstream lead us to a behavior change in QChar::isPrint() and/or ::category(), probably introduced in Qt 4.7 (as it seems to be working correctly in earlier versions). In Qt 4.6, QChar(0x1E9E) is marked as printable and belongs to category 0 (no category); in my 4.7 build of Qt, isPrint() returns false and category is 14 (not assigned). While the capital ß certainly is a rather new addition to unicode, it's defintely assigned and has been for a few years.

      I've encountered other characters with this problem before, but unfortunately didn't note down which ones.

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

            ritt.ks Konstantin Ritt
            sputnick Manuel Nickschas
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes