Friday, 9 August 2013

console displaying quote character from gcc wongly

console displaying quote character from gcc wongly

After an upgrade to debian wheezy my text consoles display questions marks
where there should be a quote
Under X I see things correctly
window.cpp:1056:21: error: base operand of '->' is not a pointer
but the console shows
window.cpp:1056:21: error: base operand of ?->? is not a pointer
If I remove everything from that file except the quote and put xy around
it (to spot it more easily), then emacs hexl-mode tells me it is this
character
00000000: 78e2 8098 790a x...y.
I understand 78 (x), 79(y) and 0a (LF) but I have trouble to believe that
something as simple as a quote requires three unicode bytes.
I also tried
dpkg-reconfigure console-setup
and managed to produce more unreadable characters, but did not succeed to
see the quotes correctly. I can type a single quote no problem and
manpages and everything look okay, so I don't know whether gcc or the
console is to blame.

No comments:

Post a Comment