Summary: | character counts are wrong when text includes emojis; each counted as two (2) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | kdebugs |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | christoph, nate, waqar.17a |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
kdebugs
2023-02-05 05:24:25 UTC
These are going to end up being individual bugs in each app, not something more general. Arbitrarily using this one for Kate; please file another for Konsole. Thanks! Can reproduce in Kate. Fixing it consistently throughout KTextEditor/Kate is considered out of scope/hard to do in all the places. See https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/533 for reasoning. Just to have some reasoning here: We use everywhere indices into UCS2 strings as columns. If we compute search matches, we use that, in the internal api we do that, e.g. for --column we do that. It would be a major effort to alter that and I don't see that it makes sense to spend our time on that. The cursor movement on editing is correct, that would be some issue, but that for rare characters the column offset is not as expected is IMHO no big issue. |