This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix libstdc++ usage of __ctype_b/__ctype_to* (take 2)
- From: Benjamin Kosnik <bkoz at constant dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, <libstdc++ at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 6 Sep 2002 09:51:28 -0500 (CDT)
- Subject: Re: [PATCH] Fix libstdc++ usage of __ctype_b/__ctype_to* (take 2)
Yes, this looks good. Thanks!
> 2002-09-06 Jakub Jelinek <jakub@redhat.com>
>
> * config/os/gnu-linux/bits/ctype_noninline.h
> [_GLIBCPP_USE_SHADOW_HEADERS]: Remove using _C_legacy::__ctype_*.
> (ctype<char>::classic_table): If _GLIBCPP_C_LOCALE_GNU, return
> _S_c_locale->__ctype_b, otherwise temporarily switch to "C" locale
> and return __ctype_b.
> (ctype<char>::ctype(__c_locale, const mask*, bool, size_t)): If not
> _GLIBCPP_C_LOCALE_GNU, temporarily switch to "C" locale and
> initialize using __ctype_{b,tolower,toupper}.
> (ctype<char>::ctype(const mask*, bool, size_t)): If
> _GLIBCPP_C_LOCALE_GNU, initialize using
> _S_c_locale->__ctype_{b,tolower,toupper}, otherwise temporarily
> switch to "C" locale and initialize using __ctype_{b,tolower,toupper}.