http://llvm.org/bugs/show_bug.cgi?id=20453
Bug ID: 20453
Summary: minor display problem with text diagnostic source
lines when source contains multi-byte characters
Product: clang
Version: trunk
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
UTF-8 source file 'main.cpp':
int main() {
int x = 'µ';
}
from cmd.exe run command 'chcp 65001'
run command 'clang++ main.cpp'
Output:
C:\path\main.cpp:2:10: error: character too large for enclosing character
literal type
int x = 'µ';;
^
1 error generated.
There's an extra semicolon printed. Compiling with the console codepage set to
437 produces:
C:\path\main.cpp:2:10: error: character too large for enclosing character
literal type
int x = '┬╡';
^
The output under chcp 65001 is what you would get writing out the string using
one column per byte and then overwriting it using the correct number of columns
for each character.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs