This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]