Author Topic: Unicode conversion (attention all devs)  (Read 85959 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: UNICODE: ATTENTION ALL DEVS
« Reply #75 on: August 08, 2005, 06:28:35 am »
...Any type of testing in linux is appreciated!

you can do a lot of that what you're suggesting !!  :)

takeshimiya

  • Guest
Re: Unicode conversion (attention all devs)
« Reply #76 on: August 08, 2005, 06:39:48 am »
Of course! Only if any linux distro would work on this motherboard (on this chipset)...

As I said:
My motherboard's chipset doesn't work in any distro.
So my only solutions are VMWare (too slow for me) or coLinux (I tried several times but failed to got it working ok).

Recommendation: Don't buy a motherboard with an ATI chipset if you want to run linux =|
New hardware/less known hardware doesn't go well with linux kernel.
 :|

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Unicode conversion (attention all devs)
« Reply #77 on: August 08, 2005, 06:50:07 am »
Of course! Only if any linux distro would work on this motherboard (on this chipset)...
...

ahh yeah .. i've read it after my posting in the other thread

btw i use Ubuntu Linux in VMware on an old AMD XP 1800
and it runs quick and fine too
but i've not managed to compile CB till now
but i'll do in future...

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Unicode conversion (attention all devs)
« Reply #78 on: August 08, 2005, 01:51:30 pm »
Hi, I've just compiled C::B VERSION_1_0 under Gentoo Linux (wx 2.6.1, UNICODE)  :D and currently noticed what follows (sources fetched directly from CVS):

files : sdk/projectloader.h, plugins/compilergcc/makefilegenerator.h and plugins/pluginwizard/pluginwizarddlg.h use standard "" strings instead of _T() in function definitions (defaultvalues for arguments).

Do You have same problem ? I thought I have outdated version of files  :? But I've checkouted to empty directory (using sourcefore's developer account) so it should be up to date.

Can't check anything else in this version of wx because of bug in GetClientSize()  :x

Now I'll try to do the same under wx 2.4 - let's see how it works  :)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Unicode conversion (attention all devs)
« Reply #79 on: August 08, 2005, 07:57:36 pm »
byo: You're welcome to send patches! :)

darklordsatan

  • Guest
Re: Unicode conversion (attention all devs)
« Reply #80 on: August 08, 2005, 08:34:28 pm »
Quote from: takeshimiya
My motherboard's chipset doesn't work in any distro.
So my only solutions are VMWare (too slow for me) or coLinux (I tried several times but failed to got it working ok).
Why not trying some low-height distros in VMWare. I actually have a crappier system than yours, with only 256 Mb RAM, and Ive succesfully ran SuSe 8.0 and Redhat 9.0 inside it with no hassle.
The low-heights would be slax, puppy, DSL, etc...
Here for more. Although yes, I know you already know that website.

takeshimiya

  • Guest
Re: Unicode conversion (attention all devs)
« Reply #81 on: August 08, 2005, 09:45:54 pm »
Yep, I have those distros, but I will be using GTK2/wx apps anyway which paints slow in a normal situation (for my tastes), and very slow when using VMWare.
I think my best solution is to use coLinux, I'll keep trying to get it working, but I've tried several times, failing all the times.
Currently I use x11vnc/tightvnc to use linux in another pc, but that isn't the best solution

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Unicode conversion (attention all devs)
« Reply #82 on: August 09, 2005, 12:40:21 am »
byo: You're welcome to send patches! :)

As a newbie in cvs  :oops: I must ask:
cvs diff
does this produce usable patches ?

If so, current log from my linux-compilable version is:
Code
? patch
? src/.deps
? src/.objs
Index: src/sdk/projectloader.h
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/sdk/projectloader.h,v
retrieving revision 1.5.2.2
diff -r1.5.2.2 projectloader.h
41c41
<         bool DoOptionSection(wxString& buffer, const wxArrayString& array, int nrOfTabs, const wxString& optionName = "option");
---
>         bool DoOptionSection(wxString& buffer, const wxArrayString& array, int nrOfTabs, const wxString& optionName = _T("option"));
45c45
<         void SaveOptions(wxString& buffer, const wxArrayString& array, const wxString& sectionName, int nrOfTabs, const wxString& optionName = "option", const wxString& extra = "");
---
>         void SaveOptions(wxString& buffer, const wxArrayString& array, const wxString& sectionName, int nrOfTabs, const wxString& optionName = _T("option"), const wxString& extra = _T(""));

I tried to do something with this GetClientSize() bug but it crashes in other places too - just like using uninitialized object :? Maybe I'll take a closer look...  :)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Unicode conversion (attention all devs)
« Reply #83 on: August 09, 2005, 12:47:35 am »
i think that for const wxString& you have to use wxEmptyString instead... but i'm not sure.
« Last Edit: August 09, 2005, 12:54:35 am by rickg22 »

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Unicode conversion (attention all devs)
« Reply #84 on: August 09, 2005, 12:53:52 am »
i think that for const wxString& you have to use wxEmptyString instead...

But if there's reference to const object there's no need to pass param with exackly same type - in such case, temporary object can be created what is done when passing _T("") as wxString.
Hmm, or I didn't understand You ;)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Unicode conversion (attention all devs)
« Reply #85 on: August 09, 2005, 12:55:22 am »
Ah well. Nevermind, keep hunting those uninitialized variables!

(Should we recompile with -Wall and -pedantic or someting?)

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Unicode conversion (attention all devs)
« Reply #86 on: August 09, 2005, 01:04:42 am »
Ah well. Nevermind, keep hunting those uninitialized variables!

(Should we recompile with -Wall and -pedantic or someting?)

-Wall is already included  :)

And I forgot to include plugins in my patch  :oops:

Full log:
Code
? patch
? src/.deps
? src/.objs
Index: src/plugins/compilergcc/makefilegenerator.h
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/plugins/compilergcc/makefilegenerator.h,v
retrieving revision 1.12.2.3
diff -r1.12.2.3 makefilegenerator.h
39,41c39,41
<         void DoAppendIncludeDirs(wxString& cmd, ProjectBuildTarget* target = 0L, const wxString& prefix = "-I", bool useGlobalOptions = false);
<         void DoAppendResourceIncludeDirs(wxString& cmd, ProjectBuildTarget* target = 0L, const wxString& prefix = "-I", bool useGlobalOptions = false);
<         void DoAppendLibDirs(wxString& cmd, ProjectBuildTarget* target = 0L, const wxString& prefix = "-L", bool useGlobalOptions = false);
---
>         void DoAppendIncludeDirs(wxString& cmd, ProjectBuildTarget* target = 0L, const wxString& prefix = _T("-I"), bool useGlobalOptions = false);
>         void DoAppendResourceIncludeDirs(wxString& cmd, ProjectBuildTarget* target = 0L, const wxString& prefix = _T("-I"), bool useGlobalOptions = false);
>         void DoAppendLibDirs(wxString& cmd, ProjectBuildTarget* target = 0L, const wxString& prefix = _T("-L"), bool useGlobalOptions = false);
Index: src/plugins/pluginwizard/pluginwizarddlg.h
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/plugins/pluginwizard/pluginwizarddlg.h,v
retrieving revision 1.3
diff -r1.3 pluginwizarddlg.h
22c22
< void DoAddHeaderOption(wxString& buffer, bool has, const wxString& retVal = " -1");
---
> void DoAddHeaderOption(wxString& buffer, bool has, const wxString& retVal = _T(" -1"));
Index: src/sdk/projectloader.h
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/sdk/projectloader.h,v
retrieving revision 1.5.2.2
diff -r1.5.2.2 projectloader.h
41c41
<         bool DoOptionSection(wxString& buffer, const wxArrayString& array, int nrOfTabs, const wxString& optionName = "option");
---
>         bool DoOptionSection(wxString& buffer, const wxArrayString& array, int nrOfTabs, const wxString& optionName = _T("option"));
45c45
<         void SaveOptions(wxString& buffer, const wxArrayString& array, const wxString& sectionName, int nrOfTabs, const wxString& optionName = "option", const wxString& extra = "");
---
>         void SaveOptions(wxString& buffer, const wxArrayString& array, const wxString& sectionName, int nrOfTabs, const wxString& optionName = _T("option"), const wxString& extra = _T(""));

Hmm, quite strange is fact that without these changes all will be compilable under Win but won't under Linux... Hmm, I don't understand this ;) (But I think I don't have to ;) )

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Unicode conversion (attention all devs)
« Reply #87 on: August 09, 2005, 01:14:27 am »
As a newbie in cvs  :oops: I must ask:
cvs diff
does this produce usable patches ?

use
Code
cvs diff -u
for your patches in unified format

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Unicode conversion (attention all devs)
« Reply #88 on: August 09, 2005, 01:22:52 am »
use
Code
cvs diff -u
for your patches in unified format

Thx for info  :D

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: Unicode conversion (attention all devs)
« Reply #89 on: August 09, 2005, 08:25:49 am »
I have just landed , let me have some time to compile unicode-version of wxwidgets and redownload CVS.

I will come back soon to help