I have an application that internally uses Unicode. The application
needs to draw strings on the screen. For that I use the Gdk libraries,
and this provides functions for finding the width of a string and
drawing strings, which is exactly what I want to do. In fact it provides
two sets of functions, one for "normal" strings (char*) and one for wide
character strings (wchar_t).

I don't know much about this, so I was hoping that the wide character
stuff would work with my Unicode strings - and infact it did, with a
German installation of Linux, but on an English installation it stopped
working.

After reading about the wide character functions I realized that they
are locale dependent. But my program is not. The Unicode strings in my
program, may contain any Unicode characters, no matter what the locale
is.

Does anybode have any suggestions as to what format I should use when
communicating with extern libraries like the Gdk libraries, or even the
stdlib and its string functions? It seems to me that wide character
would be the right solution, but on the English installation these calls
crashes as soon as the (32-bit) character code is larger than 255.

Is there a standard way to map arbitary Unicode characters to wide
character without taking the locale into account?

Bengt
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to