https://bugs.kde.org/show_bug.cgi?id=518035
Sven Brauch <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Sven Brauch <[email protected]> --- This problem has existed for years and it's probably in more than one place. Kate's cursor position is counted in UTF16 surrogates (which is somewhat curious for 2026 tech). E.g. python reports e.g. syntax errors counted in UTF8 code points, which will mismatch if a code point is not represented by a single 16-bit code unit, like for "😄". This should however not be a problem for characters represented by a single UTF16 code unit (but outside the ascii range, such as `°`. These are still broken though sometimes IIRC. Why that is is not clear to me. Maybe some languages / situations report ranges in bytes, not unicode code points? Either way, the linked TODO is unlikely to be the problem on Linux, since the "local encoding" is typically UTF-8. For sure the problem exists even for such files. -- You are receiving this mail because: You are watching all bug changes.
