UTF-8 support - char or wchar_t?

Martin Sebor sebor@roguewave.com
Mon Jun 21 15:30:00 GMT 2004


Paolo Carlini wrote:
...
> "codecvt<char, char, mbstate_t> implements a degenerate
>  conversion; it does not convert at all."

But not necessarily codecvt_byname<char, char, mbstate_t>, which
is presumably what the test case uses. I think the answer depends
on what the narrow internal encoding is in the fi_FI.UTF-8 locale.
If it's, say, ISO-8859-15 then there should be no reason to use
wchar_t.

Martin



More information about the Libstdc++ mailing list