Author Topic: [Sloved][BUGS]Problem in Ubuntu with Chinese pack.  (Read 2543 times)

skies457

  • Guest
[Sloved][BUGS]Problem in Ubuntu with Chinese pack.
« on: November 09, 2008, 04:56:19 am »
I'm using ubuntu and codeblocks in China, and I found out that codeblocks doesn't seem to support chinese system well. After I install Chinese pack and the g++ has been translated into Chinese. When I compile a program in CodeBlocks, it marked a warning as a error, because the word "Warning" is written in Chinese. I have to press F9 again to run the program.
Is there a solution to slove my problem? Or I have to reinstall my g++?
Thanks.
« Last Edit: November 11, 2008, 02:23:12 pm by skies457 »

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: [BUGS]Problem in Ubuntu with Chinese pack.
« Reply #1 on: November 09, 2008, 09:51:01 am »
The easiest way is to use an english environment for compiling inside C::B !
Go to "Settings -> Environment... -> Envirinment variables", add "LC_ALL" and set its value to "en_US" or "en_US.UTF-8" for example.
That only changes the environment variable inside C::B, your normal system will ot be touched.

The hard way would be to change the regexes C::B us in "Settings -> Compiler and debugger... -> Global compiler settings -> Other settings -> Advanced options... -> Output parsing".
But I don't know if the last possibility would work for chinese characters.

skies457

  • Guest
Re: [BUGS]Problem in Ubuntu with Chinese pack.
« Reply #2 on: November 11, 2008, 02:18:55 pm »
 :D Thank you very much, my problem has been sloved.
But I still hope C::B can develop a Chinese version!