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

Unicode conversion (attention all devs)

<< < (14/23) > >>

tiwag:

--- Quote from: rickg22 on August 07, 2005, 04:32:34 pm ---
--- Quote from: tiwag on August 07, 2005, 02:49:38 pm ---CVS is smart - at least when the same lines of code haven't already been changed in HEAD too - then it asks for user intervention to solve the conflict.

--- End quote ---

Yeah, like making you edit manually all the lines in question :lol:

My proposed solution is this:

 Branch: HEAD
--------------------------------------------------------- HEAD
           |
           |
           | Branch: VERSION_1_0
           | ------ SNAPSHOT ------------------- UNICODE


I had added a SNAPSHOT_DDDDDD tag (and CVS better had not messed with it! :shock: ) for all the changes beforethe UNICODE conversion. All those files have a specific version.

The CVS HEAD branch hasn't seen much changes recently, anyway - so they probably have exactly the same version number than those branhced (with one or two exceptions maybe).

If they have the same version, copy the respective file from the latest VERSION_1_0 to HEAD.
Ta-da! :D

Or does CVS do this already? :?

--- End quote ---

with cvs you can do it smarter, but in any case its not that important for now.
just now i am compiling and linking with wx-dll-unicode libs
i'll report ...

tiwag:
ok guys  8)
built successfully with wx MSW 2.4.2 unicode
CodeBlocks dll & exe & tools
tinyxml
sdk
src
consolerunnner

plugin's
Astyle
DebuggerGDB
DefMimeHandler
PluginsWizard[/li]

the most important
missing till now are:
CompilerGCC
CodeCompletion

is somebody working on them ?  :shock:
if finished plz drop me a email with them
thanks

takeshimiya:
I guess there isn't anyone assigned to the codecompletion, but I guess it's too late for me (need to sleep):

http://forums.codeblocks.org/index.php?topic=687.msg4442#msg4442

PS: Today can be the day that Code::Blocks will see the (Unicode) light! :D

tiwag:

--- Quote from: takeshimiya on August 07, 2005, 06:00:22 pm ---... Today can be the day that Code::Blocks will see the (Unicode) light! :D

--- End quote ---
you are a visionary !

a !(small) messenger log between rick_g22 and me

--- Quote ---Rick says:
i send you the zip
tiwag says:
its OK, thanks
  Sie haben "H:\Dokumente und Einstellungen\Tiwag\Eigene Dateien\MSN_Messenger\Inbox\compilergcc_unicode.zip"
  von Rick erfolgreich erhalten.
tiwag says:
now i'll try to compile
- just a few moments ...
tiwag says:
Project   : CodeBlocks VERSION_1_0 unicode, wx242
Compiler  : GNU GCC Compiler (called directly)
Directory : D:\cpp\_projects\Codeblocks\_VERSION_1_0_UNICODE_COMPILED\src\
--------------------------------------------------------------------------------
Switching to target: plugin_CompilerGCC
mingw32-g++.exe   -Wall -g -ggdb -pipe -mthreads -fno-pcc-struct-
...-o devel\share\CodeBlocks\plugins\compilergcc.dll  -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias   -lcodeblocks -lstc -lwxxrc -lwxmsw242u

Process terminated with status 0 (0 minutes, 51 seconds)
0 errors, 1 warnings
 
well done my friend !!   
Rick says:
 
Rick says:
oh no!
Rick says:
There's 1 warning!
Rick says:
 
Rick says:
(lol )
Rick says:
 
tiwag says:
nobody is perfect, not even YOU
Rick says:
hmmmm
Rick says:
"In soviet Russia, the system compiles YOU!"
Rick says:
nevermind
tiwag says:
 
tiwag sendet:
 

 
  Die Übertragung von "first_text_from_CBu.txt" wurde ausgeführt.
 
Rick says:
d with CodeB
Rick says:
was it supposed to end in "CodeB" ?
Rick says:

hello rickg !

this text i've just now edited with CodeB
tiwag says:
congratulations - you found the first bug !
Rick says:
 
tiwag says:
hey
tiwag says:
thats a big step for mankind !!
Rick says:
oh well
Rick says:
anyway
Rick says:
i think i know *WHO* is at fault with this 
tiwag says:
not even a crash when fired the first time !
Rick says:
cbeditor saves with non-unicode strings, right?
tiwag says:
thats really a good message iwould say, the rest will be also doable, i'm sure (not peanuts, but doable)
Rick says:
anyway
tiwag says:
NONONONONONO !!
Rick says:
try to load the file you've just saved
Rick says:
uh?
tiwag says:
it saved in UNICODE, the file i've sent you is in UNICODE and was saved by CBu (== CodeBlocksunicode)
Rick says:
oh - in UNICODE
Rick says:
I opened it in notepad
tiwag says:
look with a hexeditor - i did that, because i trust NOBODY
Rick says:
wait a minute
Rick says:
there should be an option to save files as UTF-8 or something, right?
Rick says:
anyway
Rick says:
if you also open it with codeblocks, does it display well?
tiwag says:
YES YES YES YES
tiwag says:
i cant believe it ! its OKOKOK
Rick says:
....h.e.l.l.o. .
r.i.c.k.g. .!...
......t.h.i.s. .
t.e.x.t. .i.'.v.
e. .j.u.s.t. .n.
o.w. .e.d.i.t.e.
d. .w.i.t.h. .C.
o.d.e.B.........
Rick says:
does the line end in "CodeB" ?
tiwag says:
that is bug no 0000000001
Rick says:
wait
Rick says:
  i got it!
tiwag says:
what
Rick says:
If the file is unicode when opened, save as unicode
Rick says:
otherwise, save as normal
tiwag says:
ok agree
tiwag says:
  but this are features !!! let them for CVS HEAD,
  our job is to build a pure UNICODE version now
Rick says:
OH
Rick says:
ok i still have to modify the codecompletion
tiwag says:
i go to announce the message in the forums -
what's your opinion ?
tiwag says:
on
"CodeBlocks_VERSION_1_0_UNICODE has seen the light! "
Rick says:
no
Rick says:
not until we have codecompletion codecompleted 
tiwag says:
codecompletion will not work anyway - believe me
Rick says:
yeah but...
Rick says:
it's better not having to have another stage of modifications
tiwag says:
i dont understand you - i only wanted to post in the forum, that we have compiled and run CBu without crash the first time !
thats all
Rick says:
ok ok...
Rick says:
Just say "I could compile code::blocks in Unicode!"
--- End quote ---

"I could compile code::blocks in Unicode!"

what i've done now !

thanks to ALL who helped the last days !!!!!!!!!!

takeshimiya:
Almost CONGRATS!  :o
(almost until codecompletion is finished)

About the File Unicode thing, C::B must save (by default) the files in ASCII mode (with options to save in UTF-8, UTF-16LE/BE as notepad haves).
Because most if not all compilers doesn't support unicode, only old plain ASCII.

And when saving text to a file in Unicode don't forget to put the BOM (Byte Order Mark) so all text editors know that is a file encoded in Unicode.
http://www.websina.com/bugzero/kb/unicode-bom.html
Of course when reading a file also take care of the BOM.

That's it =D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version