Bug 404415 - Konsole treats non-BMP characters as non-printable when checking a paste
Summary: Konsole treats non-BMP characters as non-printable when checking a paste
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: copy-paste (show other bugs)
Version: master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-15 20:28 UTC by Christoph Feck
Modified: 2019-11-28 14:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2019-02-15 20:28:22 UTC
SUMMARY
When pasting into Konsole, a check is made for unprintable characters. This check also triggers a warning for (printable) non-BMP characters.

STEPS TO REPRODUCE
1. Mark this icon: 😣
2. Copy into clipboard
3. Paste into Konsole

OBSERVED RESULT
A warning about two unprintable surrogate characters

EXPECTED RESULT
It handles surrogate pairs, and uses QChar::isPrintable(uint) to check them.

See a similar patch for KWin at https://phabricator.kde.org/D19052
Comment 1 Egmont Koblinger 2019-11-27 21:12:04 UTC
This was fixed in 5e142c9dad, wasn't it?
Comment 2 Mariusz Glebocki 2019-11-28 14:37:31 UTC
Yes, thanks