This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] moneypunct<wchar_t>: mbsrtowcs or just btowc?
- From: Martin Sebor <sebor at roguewave dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 08 Apr 2004 13:57:27 -0600
- Subject: Re: [RFC] moneypunct<wchar_t>: mbsrtowcs or just btowc?
- References: <4075A645.9030104@suse.de>
Paolo Carlini wrote:
...
However, if I'm not mistaken, this is "overkill", since those langinfo
calls
return just plain "C" strings, not multibyte sequences!
I believe the pointers do in fact point to multibyte strings.
In the zh_CN locale, for instance, the UCS currency symbol is
U+FFE5. In the typical charset for this locale, GBK, the symbol
is encoded in the two bytes "\xa3\xa4" What makes you think
otherwise?
Martin