Bug 412095 - lines containing certain Unicode characters aren't displayed correctly
Summary: lines containing certain Unicode characters aren't displayed correctly
Status: RESOLVED DUPLICATE of bug 404907
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 19.04.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-19 23:38 UTC by glyphimor
Modified: 2019-09-20 19:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kwrite screenshot showing incorrectly-rendered lines (25.96 KB, image/png)
2019-09-20 19:31 UTC, glyphimor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description glyphimor 2019-09-19 23:38:19 UTC
SUMMARY

In KWrite, when you add a certain Unicode character (e.g. U+24B8 or U+24D2) to a line, the line's text is no longer fully visible.

Specifically, the top half of the line's "viewpane" goes blank, while the bottom half now contains the upper portion of the text that should be displayed. That is, the text that should be displayed has been shifted downwards in the viewpane, so that the bottom portion of the text is no longer visible.

STEPS TO REPRODUCE
1. Run the following from a command line:

python3 -c "f=open('test.txt', 'wt'); f.write('U+00A9: \u00a9\nU+24B8: \u24b8\nU+24D2: \u24d2\n'); f.close()"

2. Open test.txt in KWrite

OBSERVED RESULT

The 1st line contains the normal copyright symbol, U+00A9 (decimal 169) and renders correctly.

The 2nd line contains a different Unicode copyright symbol, U+24B8 (decimal 9400) and renders incorrectly, as described in the summary.

The 3rd line contains yet a different Unicode copyright symbol, U+24D2 (decimal 9426) and similarly renders incorrectly.

EXPECTED RESULT

All lines in test.txt render correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.60.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION

Noticed the issue when a text file happened to contain a U+24B8 copyright symbol. Didn't test w/ other symbols, but presumably the issue isn't restricted to the 2 I found.
Comment 1 2wxsy58236r3 2019-09-20 12:35:52 UTC
Could you please tell us the font you are using in KWrite? Do you have any screenshot?
Comment 2 glyphimor 2019-09-20 19:31:48 UTC
Created attachment 122770 [details]
Kwrite screenshot showing incorrectly-rendered lines

Font is Liberation Mono, font style Regular, font size 9
Comment 3 Christoph Cullmann 2019-09-20 19:33:36 UTC

*** This bug has been marked as a duplicate of bug 404907 ***