4 Jul 2000 12:44
Re: XFree86, UTF-8 and gtk+
Alexander Voropay <a.voropay <at> globalone.ru>
2000-07-04 10:44:52 GMT
2000-07-04 10:44:52 GMT
Bruno Haible <haible <at> ilog.fr> 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)
RSS Feed