iconv from/to wchar_t
Ulrich Drepper
drepper@redhat.com
Fri Oct 27 17:00:00 GMT 2000
Bruno Haible <haible@ilog.fr> writes:
> a) the system dependent and locale dependent wide character encoding,
This one.
> or
>
> b) UCS-4 in machine-dependent endianness and properly aligned in memory?
I don't want to go that far. Only use it to convert back and from
wchar_t arrays.
> 1) If it's (a), then it would be good to have also a "char" encoding
> denoting the the system dependent and locale dependent multibyte
> encoding.
That's not necessary. First, this is not fixed and therefore one
would have to add locale knowledge in iconv_open. And second, you can
get such a descriptor with iconv_open(to,nl_langinfo(CODESET)) or the
other way around.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list