[PATCH] Fix libstdc++ usage of __ctype_b/__ctype_to* (take 2)

Benjamin Kosnik bkoz@constant.com
Fri Sep 6 07:53:00 GMT 2002


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



More information about the Libstdc++ mailing list