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

Strings containing zero-width spaces may be rendered incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0
    • 4.7.3
    • GUI: Text handling
    • None
    • a5c3064439a9f1483565e5d9dfbf0342cd9236f0

    Description

      The attached test case displays the string "+0f-1", where a zero-width space character (QChar(0x200b)) is inserted between '0' and 'f', on screen in a QLabel. The characters 'f' and '1' are swapped, such that the label reads "+01-f". If the zero-width space is removed, the string is displayed correctly.

      Tested using a recent checkout of the 4.7 branch on Linux (OpenSuse).

      Attachments

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

        Activity

          People

            jiang Jiang Jiang
            freininghaus Frank Reininghaus
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes