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

TextEdit selection highlighting works incorrect for some cyrillic symbols

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.4.1, 5.4.2, 5.5.0
    • GUI: Text handling
    • None
    • Kubuntu, Windows 7
    • c318fceaccb1ee23a567f1bb032df45417217e09

    Description

      It's very simple to reproduce. Just place that on window:

      TextEdit {
      	selectByMouse: true
      	x: 160
      	y: 101
      	text: "Да, но как же"
      	readOnly: true
      }
      
      TextEdit {
      	selectByMouse: true
      	x: 160
      	y: 131
      	text: "Держи в уме"
      	readOnly: true
      }
      

      And try to select all that text using mouse. I've attached the result.
      text property contains words "Yes, but how" in russian, using cyrillic symbols. And something goes wrong with word "but" ("но") in 5.4.1, 5.4.2.

      Second text edit contains "Держи в уме" ("Keep in mind" in Eniglish). That's a bit funny, but first text edit highlights text just fine in the latest 5.5.0, but this text edit shows the same error for letter "в" ("in").

      I've also attached tiny project for that bug.

      Attachments

        1. odd selection.png
          odd selection.png
          12 kB
        2. wrong_selection.tar.bz2
          1 kB
        3. odd selection 5.5.0.png
          odd selection 5.5.0.png
          16 kB
        4. wrong_selection_5.5.0.tar.bz2
          1 kB

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              danclax danclax
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes