[Y-devel] ucs4 in wchar_t

Rupert Mazzucco maz at ap.univie.ac.at
Wed Feb 25 22:26:39 GMT 2004


Recently someone converted stuff to wchar_t, in preparation
for the server internal representation of characters in ucs4
format.  I'm not sure that wchar_t is guaranteed to be a 32
bit type.  Actually I'm pretty sure there are 16 bit wchar_t's
floating around, and I don't think the standard specifies the
size at all, only "bigger than char" or something like that.

Wouldn't it be better to typedef int32_t from stdint.h as ucs4_t
and use that?

Regards,
Rupert




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved