Tue, 08 Aug 2000 12:24:47 +0100, Markus Kuhn <[EMAIL PROTECTED]> pisze:

> This is about to change however, and now you can finally provide
> in a standardized way to the C library a Unicode wchar_t string,
> and then it will do the I/O in the locale-dependent character
> encoding for you.

I need the conversion between Unicode and the default locale-dependent
byte encoding. I know how to do it assuming that wchar_t is Unicode.
Am I right that there is no portable way do to it otherwise, and the
best solution is to assume that wchar_t is Unicode? On which systems
it is not true?

I even can't detect this. C99 recommends that a C implementation
defines __STDC_ISO_10646__ if wchar_t is Unicode but gcc + glibc-2.1.3
don't define it, so this detection is impractical. Detection without
an alternative on other platforms would not help anyway.

This is Glasgow Haskell Compiler which finally begins to use Unicode,
as the Haskell 98 report was saying for some time.

-- 
 __("<  Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK

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

Reply via email to