1 --- tolower.c.orig 2004-11-25 11:38:19.000000000 -0800
2 +++ tolower.c 2005-02-17 16:43:19.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/locale/tolower.c,v 1.11 2004/07/29 06:16:19 tjr Exp $");
7 +#include "xlocale_private.h"
19 - _RuneRange *rr = &_CurrentRuneLocale->__maplower_ext;
21 _RuneEntry *base, *re;
23 if (c < 0 || c == EOF)
26 + NORMALIZE_LOCALE(loc);
28 + * the following is not used by tolower(), but can be used by
29 + * tolower_l(). This provides the oppurtunity to optimize tolower()
30 + * when compatibility for Panther and lower is no longer needed
32 + if (c < _CACHED_RUNES)
33 + return loc->__lc_ctype->_CurrentRuneLocale.__maplower[c];
34 + rr = &loc->__lc_ctype->_CurrentRuneLocale.__maplower_ext;
35 /* Binary search -- see bsearch.c for explanation. */
37 for (lim = rr->__nranges; lim != 0; lim >>= 1) {
47 + return ___tolower_l(c, __current_locale());