[devel] Re: [sisyphus] I gtk+-1.2.9
Alexander Bokovoy
=?iso-8859-1?q?ab_=CE=C1_avilink=2Enet?=
Пн Мар 12 00:37:05 MSK 2001
On Sun, Mar 11, 2001 at 11:08:54PM +0300, Sergey Vlasov wrote:
> > на PC.
>
> Оппс, имел в виду UCS4 - там именно BE. А по поводу INTERNAL в
> libc.info (glibc iconv Implementation) написано, что это почти UCS4, но
> с родным порядком байт (и действительно, sizeof(wchar_t) == 4). Как я
> понимаю, именно INTERNAL и используется для wchar_t.
В XFree86 используется 16-битные последовательности для символов, но при
этом происходит конверсия (xc/lib/X11/lcUTF8.c):
/* Part I: Conversion routines CompoundText/CharSet <--> Unicode/UTF-8.
*
* Note that this code works in any locale. We store Unicode values in
* `ucs4_t' variables, but don't pass them to the user.
*
* This code has to support all character sets that are used for CompoundText,
* nothing more, nothing less. See the table in lcCT.c.
* Since the conversion _to_ CompoundText is likely to need the tables for all
* character sets at once, we don't use dynamic loading (of tables or shared
* libraries through iconv()). Use a fixed set of tables instead.
*
* We use statically computed tables, not dynamically allocated arrays,
* because it's more memory efficient: Different processes using the same
* libX11 shared library share the "text" and read-only "data" sections.
*/
typedef unsigned int ucs4_t;
То есть, используется тот формат, который приемлем для системы, что
совпадает с wchar_t из glibc. Но все это -- в XFree86 4.0.2
--
Sincerely yours, Alexander Bokovoy
The Midgard Project | www.midgard-project.org | Aurora R&D team
Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com
ALT Linux Team | www.alt-linux.org | Architecte Open Source
-- I bought some used paint. It was in the shape of a house.
-- Steven Wright
Подробная информация о списке рассылки Sisyphus