On Tue, 8 Aug 2000, Markus Kuhn wrote:

>        __STDC_ISO_10646__ An integer constant of the  form  yyyymmL
>                 (for  example,  199712L), intended to indicate that
>                 values   of   type   wchar_t    are    the    coded
>                 representations   of   the  characters  defined  by
>                 ISO/IEC 10646,  along  with  all   amendments   and
>                 technical  corrigenda  as of the specified year and
>                 month.
> 
> So starting with glibc 2.2, you should find in __STDC_ISO_10646__ a
> value > 200000L to indicate that Unicode 3.0 is now supported in
> wchar_t. Sounds like a reasonably portable arrangement to me.

Defining this is of course the responsibility of the compiler (6.10.8p3 -
the value must be constant throughout the translation unit - so the same
before and after any standard headers are included).  So it would be more
correct to arrange for GCC to define it if the target headers contain an
appropriate definition with the value.  Unfortunately GCC does not
distinguish between glibc2.1 and glibc2.2 as targets.

-- 
Joseph S. Myers
[EMAIL PROTECTED]

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/

Reply via email to