On 11/25/2013 12:55 AM, Jakub Jelinek wrote: > On Sun, Nov 24, 2013 at 11:52:49PM +0100, Václav Zeman wrote: >> Here is one idea for GSoC: Implement C++ locale support in libstdc++ >> based on POSIX 2008 uselocale()/duplocale() facilities. > > Doesn't glibc do that since 2002?
Glibc does seem to have the locale facilities mentioned above. Since when does it have the facilities? I do not know. Are they used in libstdc++'s `std::locale` implementation? Yes and no. The 'gnu' style (`--enable-clocale=gnu` configure option[1]) implementation uses the POSIX 2008 functions but it also uses `typedef __locale_t __c_locale`, i.e., the Glibc internal type instead of `locale_t`. The implementation in `libstdc++-v3/config/locale/gnu` is also riddled with Glibc version checking preprocessor directives. What I am proposing is that somebody takes the pure POSIX 2008 API and implements `std::locale` on top of that. [1]: http://gcc.gnu.org/onlinedocs/gcc-4.8.2/libstdc++/manual/manual/configure.html
signature.asc
Description: OpenPGP digital signature