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: Paolo Carlini <pcarlini at suse dot de>
- To: Nathan Myers <ncm at cantrip dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 08 Apr 2004 23:19:48 +0200
- Subject: Re: [RFC] moneypunct<wchar_t>: mbsrtowcs or just btowc?
Hi Nate!
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.
Well, I'm also under this impression. The C standard mentions here
ISO 4217. Is this consistent with your reading?
The fourth character (if present) is a space, right?
Well, the standard doesn't say this explicitly, talks about "character
used to separate the international currency symbol from the monetary
quantity". The glibc docs point out "(often a space)"
Now, this "often space" ;) is part of the currency symbol or not for
our purposes? Humm... Now that I think more about this, I'm sure that
another implementation thinks (at variance with current v3) that is
*not* part of the currency symbol...
Paolo.