Marcin 'Qrczak' Kowalczyk wrote on 2000-11-01 15:40 UTC:
> As it has been pointed out, wcrtomb is not appropriate for conversion
> from Unicode (or other known charset), because wchar_t can be any
> encoding.
Just insert into your source code the three magic lines
#ifndef __STDC_ISO_10646__
#error "Error: wchar_t is not Unicode!"
#endif
and after that, your environment will be miraculously guaranteed to have
only a Unicode wchar_t encoding. Portable programming can be that easy!
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/