This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/6015: 3.1 pre libstdc++ number formatting is notmt-safe.
- From: Teemu Torma <tot at trema dot com>
- To: paolo at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 23 Mar 2002 23:04:13 +0100
- Subject: Re: libstdc++/6015: 3.1 pre libstdc++ number formatting is notmt-safe.
- References: <20020323143746.16678.qmail@sources.redhat.com>
On Sat, 2002-03-23 at 15:37, paolo@gcc.gnu.org wrote:
> The cleanest way to fix this seems to be that of using a
> sort of thread-safe setlocale which, however, will be
> available only with glibc2.3. For additional details see
> the following thread:
> http://gcc.gnu.org/ml/libstdc++/2002-03/msg00396.html
[I reply here since am not in libstdc++ mailing list]
I don't see how glibc2.3 would help, and it would not work on other
systems, like Solaris, nor any present system. Since this is regression
from any previous g++ (well, at least since 2.95) version, a different
solution is needed.
Formatting numbers is not that tough, and earlier releases did it
themselves. Not sensible inside a template though.
Teemu