Red Hat Bugzilla – Bug 157206
class name appears as A in error messages
Last modified: 2007-11-30 17:11:05 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461)
Description of problem:
Information in error messages produced by gcc 4.0.0 in fc4test2 is being represented by the character Ã on my machine e.g.
/public/test.cpp:92:error: Ã has no member named Ã
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Reference a missing class member
Actual Results: The following error message is generated
/public/test.cpp:92: error Ã has no member named Ã
Expected Results: name of class and member should have appeared in the error message
Please provide a self-contained testcase.
"gcc output shows hex codes e2 80 in the message which is causing the
Your terminal setup is wrong then. If you are running GCC in UTF-8 locale
(such as en_US.UTF-8), it prints the opening/closing quotes as UTF-8 non-ASCII
characters (\xe2\x80\x98 and \xe2\x80\x99).
If your terminal can't handle this and can't be changed to grok that, you should
not run programs in UTF-8 locale. In say en_US locale (or C locale) GCC will use
' as both opening and closing quote.