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]
Other format: [Raw text]

Re: Patch to libstc++: Remove strdup from locale_facets.tcc


On Tue, Sep 10, 2002 at 09:02:42AM +0200, Paolo Carlini wrote:
> Jakub Jelinek wrote:
> 
> >Aren't these files which are used for libstdc++ compilation only and thus
> >it shouldn't matter (wonder why ctype_noninline.h is installed BTW)?
> >
> (Replying to Loren and Danny too)
> 
> OK! In my message I was moved by consistency and, moreover, I was
> afraid that sooner or later the other strdup could give problems...

But the patch certainly brings another things:
a) __convert_from_v must not use setlocale but uselocale for GLIBC 2.3+.
b) is "C" locale really the right one to use, or should it use the
   const __c_locale& argument?

a) is further complicated by lack of __uselocale prototype, so I'm afraid
   we might need the:
   namespace __gnu_cxx_loc {
     extern "C" __typeof(uselocale) __uselocale;
   }
   ...
   and use __gnu_cxx_loc::__uselocale()

	Jakub


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