This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: iconv from/to wchar_t


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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]