wchar_t on Solaris 8
Benjamin Kosnik
bkoz@redhat.com
Tue Apr 15 04:33:00 GMT 2003
I don't know what Solaris does.
>What's the encoding of whar_t in gcc3.2?
On linux, wchar_t is a 4byte type, and the encoding is UCS4 but with the
native byte order. This can be represented by the WCHAR_T encoding in
iconv.
Ie, like this:
iconv_t des = iconv_open("UTF-8", "WCHAR_T");
You might want look at the test cases in:
22_locale/codecvt/unicode/*
22_locale/codecvt/*
Also, this documentation is pretty weak at the moment but it might be
helpful:
http://gcc.gnu.org/onlinedocs/libstdc++/22_locale/codecvt.html
best,
benjamin
More information about the Libstdc++
mailing list