1 --- libstdc++-v3/config/locale/gnu/ctype_members.cc.jj 2002-08-30 12:09:12.000000000 +0200
2 +++ libstdc++-v3/config/locale/gnu/ctype_members.cc 2002-09-02 15:25:15.000000000 +0200
3 @@ -166,15 +166,30 @@ namespace std
6 do_widen(char __c) const
7 - { return btowc(__c); }
10 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
11 + __c_locale __old = __uselocale(_M_c_locale_ctype);
13 + wchar_t __ret = btowc(__c);
14 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
22 do_widen(const char* __lo, const char* __hi, wchar_t* __dest) const
24 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
25 + __c_locale __old = __uselocale(_M_c_locale_ctype);
28 memset(static_cast<void*>(&__state), 0, sizeof(mbstate_t));
29 mbsrtowcs(__dest, &__lo, __hi - __lo, &__state);
30 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
36 @@ -182,7 +197,13 @@ namespace std
38 do_narrow(wchar_t __wc, char __dfault) const
40 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
41 + __c_locale __old = __uselocale(_M_c_locale_ctype);
43 int __c = wctob(__wc);
44 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
47 return (__c == EOF ? __dfault : static_cast<char>(__c));
50 @@ -191,6 +212,9 @@ namespace std
51 do_narrow(const wchar_t* __lo, const wchar_t* __hi, char __dfault,
54 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
55 + __c_locale __old = __uselocale(_M_c_locale_ctype);
60 @@ -208,6 +232,9 @@ namespace std
64 +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
69 #endif // _GLIBCPP_USE_WCHAR_T