为什么GCC中都有" A"在其所有的错误消息? [英] Why does gcc have "â" in all its error messages?
问题描述
由于某些原因,我安装GCC似乎打印全部到位%s的一个带一克拉字在错误信息,如,
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.)
(这是在Ubuntu 8.10)
(This is on Ubuntu 8.10)
编辑:在这家伙的http://ubuntuforums.org/showthread.php?t=252832说要设置LC_MESSAGES = EN_US但是,这并不为我做任何事情。
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.
推荐答案
啊哈!问题是,我有LANG =的en_US.UTF-8和使用的xterm。显然,这是没有好。通过设置LANG = C或LANG = en_US,则一切都非常好。
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.
这篇关于为什么GCC中都有" A"在其所有的错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!