This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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: libstdc++/6015: 3.1 pre libstdc++ number formatting is notmt-safe.


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




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