Bug 308048 - Backspace/delete breaks on unicode characters above U+FFFF
Summary: Backspace/delete breaks on unicode characters above U+FFFF
Status: RESOLVED DUPLICATE of bug 205447
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-08 00:58 UTC by Daniel Scharrer
Modified: 2012-11-01 15:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Scharrer 2012-10-08 00:58:11 UTC
Non-UCS-2 characters are not handled properly when deleting individual characters leaving a broken character on the first backspace input which then requires a second backspace press to delete.

Reproducible: Always

Steps to Reproduce:
1. Open a new (empty) document Kate / KWrite
2. Enter the FIRE character (U+1F525, see http://www.fileformat.info/info/unicode/char/1f525/index.htm under "Java Data")
3. Press backspace to delete the entered character
Actual Results:  
The FIRE character is replaced by a broken (empty box) character - someone didn't expect that UTF-16 != UCS-2?

Expected Results:  
The document is empty again.

This works correctly other text input fields in KDE.

Even in the kate part navigation via the arrow keys and selecting via the mouse properly recognizes U+1F525 as one single character.
Comment 1 Christoph Cullmann 2012-11-01 15:25:30 UTC

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