From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 11 Mar 2001 23:37:05 +0200 From: Alexander Bokovoy To: sisyphus@linuxteam.iplabs.ru Subject: Re: [devel] Re: [sisyphus] I gtk+-1.2.9 Message-ID: <20010311233705.A25690@avilink.net> Mail-Followup-To: sisyphus@linuxteam.iplabs.ru References: <3AA141C7.976F227F@logic.ru> <20010311171049.39928f29.vsu@mivlgu.murom.ru> <20010311204318.52dc0fad.vsu@mivlgu.murom.ru> <20010311205349.G1408@avilink.net> <20010311222136.1e3ca241.vsu@mivlgu.murom.ru> <20010311212849.I1408@avilink.net> <20010311230854.126edbac.vsu@mivlgu.murom.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20010311230854.126edbac.vsu@mivlgu.murom.ru>; from vsu@mivlgu.murom.ru on Sun, Mar 11, 2001 at 11:08:54PM +0300 Sender: sisyphus-admin@linuxteam.iplabs.ru Errors-To: sisyphus-admin@linuxteam.iplabs.ru X-BeenThere: sisyphus@linuxteam.iplabs.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: sisyphus@linuxteam.iplabs.ru List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Archived-At: List-Archive: List-Post: 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