RE: Multibyte definition

From: Brendan Murray/DUB/Lotus (
Date: Fri Mar 17 2000 - 09:42:22 EST wrote:
>> 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.

> I see this as a gratuitous assumption.

I agree totally with your descriptions of the types. However you seem to
have missed the two points I was making: you can put any value you want
into a wchar_t - after all, C and C++ permit such things. My other point
was that the de facto usage of wchar_t is to store a Unicode character, and
that one should be wary of any code that uses it for something else: it's a
flag that perhaps other assumptions and unusual behaviors have been coded
that conflict with good practices in internationalization.

By the way, what's the size of a wchar_t on ICL kit?


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