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