Author Topic: How to change build message language  (Read 5088 times)

Offline tym

  • Single posting newcomer
  • *
  • Posts: 3
How to change build message language
« on: November 06, 2011, 12:54:44 pm »
Hey,

How do I change the build message language? When I compile a code with errors I get message back which is not in a real language.. It is a mixture of danish, english and symbols..
It is kind of strange since my win7 is english..

So, how do I change this to only give english message?

Thanks for your help

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to change build message language
« Reply #1 on: November 06, 2011, 01:09:57 pm »
So, how do I change this to only give english message?
As you did not say anything about the version and platform your are using, I can only do a wild guess. Change the LOCALE of you system to English.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline tym

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to change build message language
« Reply #2 on: November 06, 2011, 02:16:04 pm »
So, how do I change this to only give english message?
As you did not say anything about the version and platform your are using, I can only do a wild guess. Change the LOCALE of you system to English.

Win 7, 64 bits.
code block ver 10.05 - 32 bit.

Will you tell me how a do that?

And if it make a different: I compile with cygwin, which I have change to only english in the Cygwin.bat file

Offline tym

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to change build message language
« Reply #3 on: November 10, 2011, 01:11:53 pm »
There is no body there can help me?

zabzonk

  • Guest
Re: How to change build message language
« Reply #4 on: November 10, 2011, 01:28:15 pm »
Well, my advice is simple - "don't use Cygwin". Changing the cygwin.bat file will not affect Code::Blocks in any way. The cygwin.bat file is just a shortcut to run the bash shell, but Code::Blocks runs the GCC compiler directly, not through cygwin.bat, so any locale changes you made there will not be picked up. 

The environment variables that control GCC output are described at http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Environment-Variables.html#Environment-Variables but you need to set them somewhere other than in cygwin.bat, such as in Code::Blocks, Settings|Environment|Environment Variables dialog.