https://bugs.kde.org/show_bug.cgi?id=405272

            Bug ID: 405272
           Summary: KTextEditor: column count wrong for UTF32
           Product: frameworks-ktexteditor
           Version: unspecified
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: rjvber...@gmail.com
  Target Milestone: ---

Created attachment 118671
  --> https://bugs.kde.org/attachment.cgi?id=118671&action=edit
Sample document

SUMMARY
Certain emojis have a UTF32 representation and when these appear in text they
are counted as 2 characters, leading to invalid column counts.

STEPS TO REPRODUCE
1. Open the attached document in kwrite or kate, advance the cursor over
individual lines

OBSERVED RESULT
The column counter in the status bar jumps from 1 to 3 advancing the cursor 1
character to the right from the beginning of lines that start with a UTF32
glyph

EXPECTED RESULT
Such glyphs show as a single glyph and the cursor behaves that way too (= a
single left/right press is sufficient to move over them). The counter should
behave the same way.

Tested on Mac OS X but I have no reason to suspect this would be any different
on other platforms.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to