Re: shadowing libc



Behdad,

> BTW, do we plan to have compatibility
> library that shadows libc?  That's a very simple wrapper of course.

If you keep the goal that the installer or end-user chooses between
glibc locale data and CLDR data, then yes such a compatibility
library is necessary. Because it would take eternities to convince
everyone to use  gl_strfmon  instead of strfmon, etc.

This wrapper could consist of

  1) a set of include files stdio.h, stdlib.h, etc. that contain
     redirections of the form

       static inline size_t
       strftime(char *s, size_t max, const char *format, const struct tm *tm)
       {
         return gl_strftime (s, max, format, tm, _gl_thread_locale ());
       }

  2) an autoconf macro that would add the appropriate -I option to the
     CPPFLAGS.

Bruno




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]