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?


If you want the library to work with locales created by the
localedef utility you can't assume that. It's trivial to create
locales with any arbitrary currency symbol, including one that
contains multibyte character sequences. IMO, the small performance
gain you get by making these kinds of assumptions is not worth the
loss of robustness.

Ok, I agree, thanks (and anyway we cache that info ;)


What about the interpretation of the fourth char of int_currency_symbol
for the C++ purposes??? Should be considered part of the C++ symbol or
not? What RW does?

Paolo.


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