stray character in gcc output
I am actually having this problem since many days. Whenever i compile any file, the warnings and errors surround some keywords of warning with â character.
Here is sample output(deliberately committed compile error)
Quote:
mixin.cpp:33: error: request for member âappendâ in âmixin1â, which is of non-class type âintâ
mixin.cpp:34: error: request for member âappendâ in âmixin2â, which is of non-class type âintâ
mixin.cpp:35: error: request for member âfindâ in âmixin1â, which is of non-class type âintâ
mixin.cpp:36: error: âcoutâ was not declared in this scope
mixin.cpp:36: error: invalid types âint[int]â for array subscript
mixin.cpp:36: error: âendlâ was not declared in this scope
mixin.cpp:37: error: request for member âgetStampâ in âmixin1â, which is of non-class type âintâ
I really don't know how to solve this problem as i don't know where the problem exists. Googling didn't help much either. The manpage of stty also didn't lead me anywhere. Can somebody help me?
I am using kubuntu - feisty.
Re: stray character in gcc output
It looks like a font or encoding problem. Does this happen on both the text terminal (like after pressing Ctrl+Alt+F1) and graphical terminal (like Konsole)?
Re: stray character in gcc output
See the two replies on this post:
http://cygwin.com/ml/cygwin-xfree/2006-10/msg00026.html
It seems to be a problem with shells that don't support unicode.
Re: stray character in gcc output
Thanks a lot for the hint, Marcel and Wysota :)
I changed the konsole's encoding to utf-8 and it worked perfect. I also tried "export LC_ALL=C" in the text terminal (yeah, the problem was reflected here too) and it worked too :)
I never thought the solution was this simple ;)
Is the C locale supposed to be the default (whats on your system ) ?
Re: stray character in gcc output
C Locale should be considered the fallback. It's the default for non-localized environments. For me the default is pl_PL (type in "locale" to see all the locale related environment variables).
Re: stray character in gcc output
For me it will be the default :). I'm installing Linux right now.