[RFC] libstdc++/5816
Paolo Carlini
pcarlini@unitus.it
Sun Mar 3 10:25:00 GMT 2002
... by the way, making Peter happy should be easy: the following patch (untested)
most probably does the trick, but I don't know if this is really standard
conformant!
Ciao,
Paolo.
///////////
--- locale_facets.tcc.orig Sun Mar 3 19:18:41 2002
+++ locale_facets.tcc Sun Mar 3 19:19:15 2002
@@ -174,7 +174,8 @@
}
else if (__c == __dec && !__found_dec)
{
- __found_grouping += static_cast<char>(__sep_pos);
+ if (__found_grouping.size())
+ __found_grouping += static_cast<char>(__sep_pos);
++__pos;
__xtrc += '.';
__c = *(++__beg);
More information about the Libstdc++
mailing list