wxPILS: which charsize for Unix build?

Ole Nielsby ole.nielsby at tekare-you-spamminglogisk.dk
Wed Aug 1 00:52:01 PDT 2007


My PILS language uses utf-8 for all its internal string processing.

I created wxWidgets bindings for MS Windows using the unicode
(i.e. utf-16) build of wxWidgets because that's what MSW uses
and it allows me to use all unicode characters supported by MSW.
The downside is, I have to convert all string arguments - which is no
big deal.

When I port to Linux, what flavour of chars should wxWidgets
use?

Should I stick with wide chars and argument conversions, or
can I use 8 bit wxStrings with utf-8 text in them?

Wide chars would probably work OK but it seems silly to
convert my PILS utf-8 strings to utf-16 just to have wxWidgets
convert them back to utf-8 when passing them to the system.









More information about the wx-users mailing list