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


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.


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