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: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 8 Apr 2004 14:09:45 -0700
- Subject: Re: [RFC] moneypunct<wchar_t>: mbsrtowcs or just btowc?
- References: <4075B5D9.3060804@suse.de> <4075BDBB.1050702@suse.de>
On Thu, Apr 08, 2004 at 11:01:47PM +0200, Paolo Carlini wrote:
> Paolo Carlini wrote:
>
> >>What makes you think otherwise?
> >
> >perhaps, a little too terse info in the C standard and in the
> >glibc docs (that just talk about char*)
>
> In particular, in 7.11.2.1, p3, "the members of the structure with type
> char* are pointers to strings". I find this talking about "strings"
> instead of "multi byte sequences" really misleading.
>
> While we are at it, the description of int_curr_symbol is quite complex...
>
> But we are dealing with it exactly in the same way of currency_symbol!
>
> For the C++ library purposes, should we actually discard the 4th char??
It seems as if the int_currency_symbol can't be a multibyte string,
because all the characters are in the basic source character set.
The fourth character (if present) is a space, right?
Nathan Myers
ncm-nospam@cantrip.org