Am 29.06.2006 um 22:50 schrieb H.S.:
g++ -Wall -ansi -o testprog testprog.cc
testprog.cc: In function ‘int main()’:
testprog.cc:6: warning: unused variable ‘i’
testprog.cc:6: warning: unused variable ‘j’
Compilation finished at Thu Jun 29 15:01:30
----------------------------------------------------------------
The strange characters around a variable are(I have typed the
backslashes and numbers so that they are displayed properly here):
on left hand side: â\200\230
on right hand side: â\200\231
What you see here is UTF-8 represented as 8bit:
U+2018 = E2 80 98 : LEFT SINGLE QUOTATION MARK = ‘
U+2019 = E2 80 99 : RIGHT SINGLE QUOTATION MARK = ’
â is E2 in hex
200 oct is 80 in hex
230 oct and 231 oct are 98 resp. 99 in hex.
Make the *compilation* buffer be encoded in UTF-8 or make your LANG or
LC_CTYPE environment variables 8 bit -- could be there is some option
in your g++ to stay in 8 bit when printing some message.
--
Greetings
Pete
“Computers are good at following instructions, but not at reading your
mind.”
- D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9