C/C++ extension does not work with Unicode identifiers #2034
Labels
bug
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
world ready
An issue relating string character encodings, localization translations, etc.
Milestone
I use Unicode identifiers everywhere in my C++ code. It is well supported in Visual Studio. There are some bugs with syntax highlighting for example, but nothing major.
Unfortunately with Visual Studio Code it basically does not work at all. It looks like the problem is caused by the all too common mistake of some code counting in characters interfacing with other code that counts in bytes. Some examples below.
When you bring up the function arguments of a function with a Unicode argument you get a strange "error-type" message.
Note also when the cursor is on
a1
, the othera1
is also highlighted. But when the cursor is ona2
, theÇ
character is highlighted.And note how the color of
ABC
instruct ABC {};
is different from the color ofḀʙÇ
instruct ḀʙÇ {};
Tested on Windows 10, VS Code 1.23.0, C/C++ extension 0.17.3.
The text was updated successfully, but these errors were encountered: