Can you please tell me on which platforms is wchar_t 1 byte..
Let me know this as soon as possible, as I might go on the wrong track then.
Member of Techincal Staff,
Persistent Systems Private Limited.
Email : firstname.lastname@example.org <mailto:email@example.com>
Tele. : 5676700 ( Ext. 467 )
: 653109 ( R )
From: Valeriy E. Ushakov [mailto:firstname.lastname@example.org]
Sent: Wednesday, November 03, 1999 12:36 AM
To: Unicode List
Subject: Re: FW: unicode character on Different Unix platforms ....
On Tue, Nov 02, 1999 at 10:10:34AM -0800, email@example.com wrote:
> ANSI C defines wchar_t as an abstract type for "wide" characters but does
> not specify a concrete type nor a character set for it. On some platforms,
> it is Unicode, on others, it is a scalar form of the platform default
> Relying on wchar_t to be anything fixed across platforms will not work.
Moreover, implementations with 1 byte wchar_t are perfectly conformant,
so using wchar_t for Unicode is *definitely* a bad idea.
>From ISO C9X draft:
184.108.40.206.1 Sizes of integer types <limits.h>
[#1] The values given below shall be replaced by constant
expressions suitable for use in #if preprocessing
........... Their implementation-defined values shall be
equal or greater in magnitude (absolute value) to those
shown, with the same sign.
- maximum number of bytes in a multibyte character, for
any supported locale
-- firstname.lastname@example.org | Zu Grunde kommen http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:54 EDT