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] libstdc++/5816


... 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);




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