This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: iconv from/to wchar_t
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: iconv from/to wchar_t
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 27 Oct 2000 16:59:41 -0700
- Cc: libc-alpha at sources dot redhat dot com
- References: <14842.5267.30899.764348@honolulu.ilog.fr>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------