Bug #11611 2007-07-22 15:15

clyfish

warnings are treat as errors when gcc output non-english

http://forums.codeblocks.org/index.php?topic=6494.0

gcc in my Ubuntu feisty has locale info, so codeblocks treat all the warnings as errors.

$ gcc test.c -o test -Wall

test.c: ¦b¨ç数 ¡¥main¡¦ ¤¤¡G

test.c:2: ĵ§i¡G ¦b¦³ªð¦^­Èªº¨ç数¤¤¡A±±¨î¬yµ{¨ì达¨ç数§À

$ export LANG="C"

$ gcc test.c -o test -Wall

test.c: In function 'main':

test.c:2: warning: control reaches end of non-void function

So I think compiler plugin should set locale to "C" before run gcc, or the regex will be incorrect.

But, some people whose English is pool (such as me) prefer gcc's non-english characters output.

Category
Application::WrongBehaviour
Group
 
Status
Open
Close date
 
Assigned to