Bruno Haible <[EMAIL PROTECTED]> wrote:
>Text strings passed along as 'char*' are generally in the encoding
>which is specified by the LC_CTYPE facet of the current locale. To
>retrieve it, you have to use
> setlocale(LC_CTYPE,"")
>or
> setlocale(LC_ALL,"")
>at the beginning of your program;
Unfortunately, the current "POSIX locale" concept is not multilingual.
I can't use Greek letters for example with LANG=ru_RU in X Window :
Xm(b)LookupString will return only Russian letters.
I can't "stack-up" a set of required locales (for Russian, Greek and French):
setlocale(LC_CTYPE,"ru_RU");
setlocale(LC_CTYPE,"el_GR");
setlocale(LC_CTYPE,"fr_FR");
Otherwise, with UNICODE POSIX loceles (like en_US.UTF-8)
I don't need LC_CTYPE and LC_COLLATE POSIX categories at all.
(most of characters is isalphanum() and due to Generic UNICODE
collation : UTR#10)
--
-=AV=-
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/