Ticket #2631 (closed defect: fixed)
[patch ready] mcedit puts cursor in the middle of multibyte utf8 character
Reported by: | sergem | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mcedit | Version: | 4.7.5.5 |
Keywords: | Cc: | ||
Blocked By: | #2372 | Blocking: | |
Branch state: | no branch | Votes for changeset: |
Description
Sometimes when editing an UTF-8 file mcedit puts cursor in the middle of the multibyte utf8 character. And when it does, typing a new character results in an invalid utf8 sequence.
I've made some general purpose utf8test file and attached it. To reproduce this bug:
- Open this file in mcedit
- Put cursor to the end of "Combination of 2bchar + incorrect chars" line
- Press "Left" 5 times (notice, cursor moves 2 characters at a time)
- Press "q"
And you'd get a broken character.
PS: This bug is related to #2372 and #1730 but different from them.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.