Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.3.1
-
None
Description
Using beautifier on files which contains diacritical marks breaks code.
It only happens when accents are created with an unicode letter followed by the unicode combining accent.
For example, for é: \x65\xcc\x81.
The bug happens when Beautifier is used with clang-format, astyle and uncrustify, so I guess it's beautifier or Qtcreator related.
How to reproduce the bug:
open sample_file.cpp with qtcreator
format the file with beautifier
some lines are broken and don't compile anymore
How to avoid the bug:
remove the accentuated character in the documentation
Notice that the characters that triggers this are visually identical to normal accentuated characters, but they behaves differently: if you try to remove it in qtcreator, first the accent will be removed, then on the second key-press the letter will be removed.
I attached some screenshot to show the resulting file.