Summary: | KDevelop syntax highlighting wrong on lines containing unicode characters | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Cyp <cyp561> |
Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | gael.lebaccon, jtamate, kde, kfunk, leokapp44, olaf.the.lost.viking, sa, silverunicorn2011, stasnel, tuxtoriel |
Priority: | VHI | ||
Version: | 5.4.4 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Wrong word highlighted after adding comment in UTF-8
Placing UTF-8 string in stream output leads to the same bug |
Description
Cyp
2011-05-29 15:48:05 UTC
ugh indeed Git commit 0631a23f90edcf36c819452930c6134fdf449081 by Milian Wolff. Committed on 18/11/2011 at 17:56. Pushed by mwolff into branch 'master'. reenable unit tests for breakage on multibyte cstrings CCBUG: 274430 M +6 -8 languages/cpp/cppduchain/tests/test_duchain.cpp M +21 -0 languages/cpp/parser/tests/test_parser.cpp M +2 -0 languages/cpp/parser/tests/test_parser.h http://commits.kde.org/kdevelop/0631a23f90edcf36c819452930c6134fdf449081 Git commit 18f67d95b92160f7a1a0c3c9f8ade94398f01c5b by Milian Wolff. Committed on 18/11/2011 at 18:26. Pushed by mwolff into branch 'master'. add unit test showing that multibyte chars in comments also break our parser CCBUG: 274430 M +16 -0 languages/cpp/parser/tests/test_parser.cpp M +1 -0 languages/cpp/parser/tests/test_parser.h http://commits.kde.org/kdevelop/18f67d95b92160f7a1a0c3c9f8ade94398f01c5b Created attachment 65823 [details]
Wrong word highlighted after adding comment in UTF-8
Created attachment 65824 [details]
Placing UTF-8 string in stream output leads to the same bug
There is the same bug in 4.7.0 and again in new 4.7.1 Still affects the clang-based C++ language plugin. I just tried std::cout << "OlafLostViking ❤ KDevelop!" << std::endl; in KDevelop 5.0.2 and encountered the very same problem. Just tried with 5.0.3 (still valid) and wanted to pose a question to the KDevelop-developers: Since this is a quite old bug report, initially for KDevelop 4.x, I wonder if it's wanted by you to keep this problem in this report or open a new one with an up-to-date version number? Not that it will be ignored when scanning through the bug lists and deleted eventually since it's for the 4.x branch. Problem still exists in ver. 5.3.1. Still present in 5.4.4. I feel the developers are Americans only. But even in English, there are words that don’t fit in ASCII (e.g. “naïve”). Characters like *real* quotes and apostrophe are non-ASCII as well. The problem is that our editor (ktexteditor) operates in utf-16 and clang/parsing operates in utf-8. we will need to find a way to quickly translate from one to another to create the highlight ranges *** Bug 448222 has been marked as a duplicate of this bug. *** *** Bug 382465 has been marked as a duplicate of this bug. *** *** Bug 321965 has been marked as a duplicate of this bug. *** *** Bug 453742 has been marked as a duplicate of this bug. *** |