Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.1.0, Qt Creator 4.4.0
-
Arch Linux packaged QtCreator
LANG=pl_PL.UTF-8
Qt Creator 4.1.0
Based on Qt 5.7.0 (GCC 6.2.1 20160830, 64 bit)
clang version 3.8.1 (tags/RELEASE_381/final)
Description
I'm working on C89 project with files encoded in ISO-8859-2. When I'm having a string containing raw 8-bit characters, code following that string has its syntax coloring offset by the amount of 8-bit chars in that string until line end.
After reopening the file, syntax coloring matches code as it should unill I edit anywhere in that file, then it breaks as before.
Built-in qtc code model works ok.
Passing „-finput-charset=iso-8859-2” to clang model in project settings has no effect
Attachments:
- color_offset_latin2.png → broken syntax coloring, encoding: ISO-8859-2
- color_offset_utf8.png → after switching file encoding to UTF-8
- color_offset_latin2_ok.png → coloring is ok after reloading the file, encoding ISO-8859-2
Attachments
For Gerrit Dashboard: QTCREATORBUG-16941 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
205119,2 | Clang: fix highlighting marks for multibyte utf8 | 4.4 | qt-creator/qt-creator | Status: ABANDONED | -1 | 0 |
207150,2 | Clang: partly remove workaround for Utf8 symbols | master | qt-creator/qt-creator | Status: ABANDONED | -1 | 0 |
212972,8 | Clang: fix utf8 related column numbers | 4.6 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
217904,1 | Clang: fix utf8 related column numbers | master | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |