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] 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}.


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