This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] libstdc++/5816
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org, ncm at cantrip dot org, bkoz at redhat dot com
- Date: Sun, 03 Mar 2002 19:24:29 +0100
- Subject: Re: [RFC] libstdc++/5816
- References: <3C8264DF.16C46073@unitus.it>
... 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);