News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Help! Maybe trouble in codeblocks environment setting

Started by wuxian610, November 27, 2005, 08:54:10 AM

Previous topic - Next topic

wuxian610

Hello, exports:

          When I was working in codeblocks RC2, I found I can't typing Chinese at all  while I did the same thing well on other tools.
And when I imported my codes written on other tools to it , my codes looked very strange, as below:

         Show in other tools:          printf("  您好~中山先生!");
         Show in RC2:                     printf("  您好)~中山先生!";

         And my codes work well on RC2 at the same time, just as it worked on other tools。。。。
         Please give me a hand~Thanks!
                                                                                                           yours

rickg22

Are you on windows, or linux?

Also, check the "Help... about" dialog. There should be something saying "Build: ..... wx2.6.1 (Windows, ANSI). If your says "ANSI" and not "UNICODE", you need to compile codeblocks by yourself.

wuxian610

Thank you very much, my friend:

             I work under Linux(FC4) in fact.
             And the ''Help...About'' says: Build: ..... wx2.6.1 (Linux, ANSI), I thank it is showing an ill status as your words,
             I installed it in order of :
                                      1.wxGTK-2.6.2-1.i386.rpm,
                                       2.wxGTK-devel-2.6.2-1.i386.rpm, 
                                       3.codeblocks-1.0-rc2.src.rpm
              and I got a   " codeblocks-1.0-rc2.i386.rpm " in  /usr/src/  at last, which gave me executable programm as what I told you....
              Did I work in a right way~?Please give me some advice, my honorific rickg22.
                                                                                                                         
                                                                                                                                         yours

rickg22

You need to make a UNICODE build of wxWidgets. Unfortunately, I'm no Linux expert. Anyone?

wuxian610

             Thank you all the same, my friend~
             Have you seen ID : heromyth's post, about the POEDIT? Can I solve my problem in that way?Or what he said can only make the C:B'menu internationalization?


                                                                                                                                                              yours

cyberkoa

Hi , I do not usually use Linux but used before. What do you mean "import" here ? Are you using the Project > import ? If yes , which option you are importing from , Dev-C++ /MSVC or etc ..?

Is your source code originally written on Windows ?

Very obvious that the in this case printf("  您好)~中山先生!";, the ) is wrongly placed , is that happened on every line which contains Chinese character?

I am not very familiar with CB Linux version but I believe the should not be the import problem since the source code should be imported without modification .

Can you try to open the source code on text editor for example Gedit to see whether the same problem exist ?

wuxian610

Thanks, cyberkoa:

               I'm sorry for my poor English! In fact , my "import" there mains: open source code which has been already exist.
              There isn't the problem when open it on other tools. The problem only showed when the source code opened with C:B, every line Chinese appeared.
                                                                   
                                                                                                                                                        yours