Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Code::Blocks Unicode

(1/2) > >>

me22:
Ok, well, I finally made enough adjustments to the codebase to get it to compile and link with a unicode wxGTK 8) Unfortunatly, it now crashes early -- while still in the opening messageboxes. :oops:

I've uploaded all the .cpp and .h files ( most were changed, although a few weren't ) in a zip to: http://www.uploadthis.co.uk/uploads/me22/codeblocks-1.0-beta6-unicode-overlay.zip

Extract that overtop of an extracted  codeblocks-1.0-beta6.tar.gz ( overwriting, obviously ).  It also seems that the
LIB_WXSTC=wx_gtk2_stc-$(WX_VER)
LIB_WXXRC=wx_gtk2_xrc-$(WX_VER)
lines in Makefile.unix need to be changed to
LIB_WXSTC=wx_gtk2u_stc-$(WX_VER)
LIB_WXXRC=wx_gtk2u_xrc-$(WX_VER)
in order for it to link.

Hopefully someone who knows how to fix this kind of thing will have better luck =/

$ ./codeblocks-1.0-beta6/output/run.sh
Xlib: unexpected async reply (sequence 0x1864)!
Xlib: sequence lost (0x11864 > 0x1a2c) in reply type 0x0!
The program 'codeblocks.exe' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 6244 error_code 17 request_code 20 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

rickg22:
Question. Do you think you could have time to try compiling wxwidgets with unicode, under window (not linux)? Or you have Linux only? (it's not mandatory, i'm just asking)

Also, mind posting an example of a change you would make on the code (like "before", "after") so current developers (like me) won't make the work harder for you? (I don't know A THING about unicode, that's what i'm saying :wink: )

Thanks!

rickg22:
http://www.wxwidgets.org/manuals/2.5.4/wx_unicode.html

Apparently this is what Code::Blocks has been missing.

Anyway I'm for moving all the literal strings onto separate files/resources (or even header files in the short term) so they can be changed in only one place. (Multitier to the max, baby! ;-) )

rickg22:
OK, now that we got find in files working, who wants to add the _() and _T() macros to the  literal strings in all the source code? :)

*Crickets chirping*

squizzz:

--- Quote from: rickg22 ---Anyway I'm for moving all the literal strings onto separate files/resources
--- End quote ---

That would be really great - then i.e doing various translations of C::B would be very easy (in the future I mean).

Navigation

[0] Message Index

[#] Next page

Go to full version