Gcc Error Messages Utf-8
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why does gcc have “â” in all its error messages? up vote 13 down vote favorite 4 For some reason, my installation of gcc seems to be printing an "a with a carat" character in place of all %s's in its error messages, e.g., test.c:4: error: expected â, â, â, â or â before â token Has anyone else seen this before? (Needless to say, it's difficult to Google for.) (This is on Ubuntu 8.10) Edit: The guy at http://ubuntuforums.org/showthread.php?t=252832 says to set LC_MESSAGES=en_US but that doesn't do anything for me. c linux gcc share|improve this question edited Feb 13 '09 at 18:28 asked Feb 13 '09 at 18:15 mike 11.4k3075107 add a comment| 3 Answers 3 active oldest votes up vote 20 down vote accepted Aha! The problem was that I have LANG=en_US.UTF-8 and was using xterm. Apparently, that's no good. By setting LANG=C or LANG=en_US, everything's great now. share|improve this answer answered Feb 13 '09 at 18:31 mike 11.4k3075107 you should accept the answer given by theomega then. –The.Anti.9 Feb 13 '09 at 18:35 Yes. The problem was that GCC gave UTF8 messages, while xterm can't handle them. You could use a more modern terminal and stick with UTF8 if you want. –ypnos Feb 13 '09 at 18:54 1 @Anti9: No, theomega's answer was the opposite of what I should do. –mike Feb 19 '09 at 21:42 +1: Just to note for those who haven't had enough coffee (like me): In your bash terminal, something like export LANG=C before invoking gcc will do the trick here. –John Dibling Nov 2 '12 at 13:53 I th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gcc error-messages crippled http://stackoverflow.com/questions/547071/why-does-gcc-have-%C3%A2-in-all-its-error-messages (code-page or encoding-problem) up vote 3 down vote favorite 2 I use debian and g++. When compiling i get error-messages like these: In static member function ΓÇÿstatic void* v4::_mb_blocs::operator new(size_t)ΓÇÖ: Can i tell gcc to do its output in utf-8 or something ? linux gcc g++ share|improve this question asked Oct 5 '09 at 6:40 Roman Pfneudl 344519 Ehm, ok: Just to http://stackoverflow.com/questions/1518532/gcc-error-messages-crippled-code-page-or-encoding-problem clarify this, its the double-quotes i want to see instead of the ΓÇÿ thats all, so its just some sort of cosmetic, but it still makes the messages sort of unreadable to me. –Roman Pfneudl Oct 5 '09 at 6:41 maybe a unicode issue? –Carson Myers Oct 5 '09 at 6:44 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted Normally gcc outputs in ASCII or UTF-8, so you should check if your terminal is actually configured for UTF-8 (locale charmap). Also try: LC_ALL=C LANG=C gcc to get ASCII. share|improve this answer answered Oct 5 '09 at 6:49 Douglas Leeder 37.1k563109 BIIIINGO ! Both of them worked for me. Thanx, Douglas. –Roman Pfneudl Oct 6 '09 at 12:19 add a comment| up vote 0 down vote Try resetting your console font. share|improve this answer answered Oct 5 '09 at 6:43 Robert Munteanu 42.1k23156232 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a gue
Core releases