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]

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


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


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