v3 testsuite failures under hpux--setlocale dependency on libdld.sl

John David Anglin dave@hiauly1.hia.nrc.ca
Tue May 22 15:44:00 GMT 2001


> > > No, I don't think that is a good solution.  You only want the above when
> > > you need setlocale.  It wouldn't allow building a static C++ application
> > > under HPUX.
> > 
> > When do you not need setlocale? 
> 
> When you don't include bits/std_clocale.h or use anything from the locale.o
> module.  I really don't know the details of the internal use in the
> library but there is only one function locale::global that uses it.

I just noticed that setlocale isn't thread safe.  You need to use
setlocale_r to be thread safe.

Could locale::global be in its own program unit?  This would help to
isolate the problem.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Libstdc++ mailing list