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

Paolo Carlini pcarlini@unitus.it
Tue Sep 10 00:12:00 GMT 2002


Jakub Jelinek wrote:

>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()
>
Of course, you are right. Indeed, yesterday I posted a preliminary fix for
this (not dealing with the prototype issue, however):

	http://gcc.gnu.org/ml/libstdc++/2002-09/msg00142.html

Benjamin answered that he is looking into the problem: basically the
GNU-specific code must belong to a separate file.

Ciao, thanks for your feedback, Paolo. 




More information about the Gcc-patches mailing list