1 --- runetype.c.bsdnew 2009-11-09 15:05:25.000000000 -0800
2 +++ runetype.c 2009-11-09 16:54:21.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/locale/runetype.c,v 1.14 2007/01/09 00:28:00 imp Exp $");
7 +#include "xlocale_private.h"
14 -___runetype(__ct_rune_t c)
15 +___runetype_l(__ct_rune_t c, locale_t loc)
18 - _RuneRange *rr = &_CurrentRuneLocale->__runetype_ext;
20 _RuneEntry *base, *re;
22 if (c < 0 || c == EOF)
25 + NORMALIZE_LOCALE(loc);
26 + rr = &loc->__lc_ctype->_CurrentRuneLocale.__runetype_ext;
27 /* Binary search -- see bsearch.c for explanation. */
29 for (lim = rr->__nranges; lim != 0; lim >>= 1) {
30 @@ -64,3 +68,9 @@ ___runetype(__ct_rune_t c)
36 +___runetype(__ct_rune_t c)
38 + return ___runetype_l(c, __current_locale());