mirror of git://gcc.gnu.org/git/gcc.git
If a locale's THOUSANDS_SEP or MON_THOUSANDS_SEP string is not a single character we either need to narrow it to a single char or ignore it (and therefore disable digit grouping for that facet). PR libstdc++/87642 * config/locale/gnu/monetary_members.cc (moneypunct<char, true>::_M_initialize_moneypunct): Use __narrow_multibyte_chars to convert multibyte thousands separators to a single char. * config/locale/gnu/numeric_members.cc (numpunct<char>::_M_initialize_numpunct): Likewise. (__narrow_multibyte_chars): New function. From-SVN: r265286 |
||
|---|---|---|
| .. | ||
| c++locale_internal.h | ||
| c_locale.cc | ||
| c_locale.h | ||
| codecvt_members.cc | ||
| collate_members.cc | ||
| ctype_members.cc | ||
| messages_members.cc | ||
| messages_members.h | ||
| monetary_members.cc | ||
| numeric_members.cc | ||
| time_members.cc | ||
| time_members.h | ||