Re: Multibyte definition

From: Brendan Murray/DUB/Lotus (brendan_murray@lotus.com)
Date: Thu Mar 16 2000 - 15:58:07 EST


"A. Vine" <avine@eng.sun.com> wrote

> Unix wide characters are 32-bit, and the charset/encoding
> scheme they contain depends on the locale you're working in.

I think you're confusing the abstract concept of wide characters
which are always Unicode, and the local platform's encoding or
definition of wchar_t. The latter is *usually* 32 bits, but not
always - sometimes it's 16 and sometimes it's 64. And I wouldn't
be surprised if some platforms defined it as 8.

You can, of course, put whatever you want into a wchar_t but,
by convention, it tends to be restricted to UCS-2/UTF-16. If
some application is using these types for something else, I'd
be very suspicious indeed.



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:00 EDT