This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: v3 testsuite failures under hpux--setlocale dependency on libdld.sl
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Subject: Re: v3 testsuite failures under hpux--setlocale dependency on libdld.sl
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Tue, 22 May 2001 18:44:33 -0400 (EDT)
- Cc: bkoz at redhat dot com, libstdc++ at gcc dot gnu dot org
> > > 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)