Marcin 'Qrczak' Kowalczyk wrote on 2000-09-05 11:19 UTC:
> I am aware that wchar_t needs not to be Unicode but don't know what
> else can I do than to provide functions usable only in cases where
> wchar_t is Unicode.
If wchar_t is Unicode, then the C compiler will have the macro
__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.
defined, so you can use the preprocessor to make any necessary
distinctions.
http://www.cl.cam.ac.uk/~mgk25/volatile/ISO-C-FDIS.1999-04.txt
> Well, I haven't seen any interesting C libraries working on wchar_t yet...
Glibc 2.1.91 on
ftp://sourceware.cygnus.com/pub/glibc/releases
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/