[LLVMbugs] [Bug 20453] New: minor display problem with text diagnostic source lines when source contains multi-byte characters
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 25 14:35:16 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: seth.cantrell at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140725/a9d76418/attachment.html>
More information about the llvm-bugs
mailing list