1 --- nextwctype.c.orig 2004-11-25 11:38:19.000000000 -0800
2 +++ nextwctype.c 2005-02-19 03:44:49.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/locale/nextwctype.c,v 1.1 2004/07/08 06:43:37 tjr Exp $");
7 +#include "xlocale_private.h"
14 -nextwctype(wint_t wc, wctype_t wct)
15 +nextwctype_l(wint_t wc, wctype_t wct, locale_t loc)
18 - _RuneRange *rr = &_CurrentRuneLocale->__runetype_ext;
20 _RuneEntry *base, *re;
22 + _RuneLocale *rl = &loc->__lc_ctype->_CurrentRuneLocale;
25 if (wc < _CACHED_RUNES) {
27 while (wc < _CACHED_RUNES) {
28 - if (_CurrentRuneLocale->__runetype[wc] & wct)
29 + if (rl->__runetype[wc] & wct)
35 + rr = &rl->__runetype_ext;
36 if (rr->__ranges != NULL && wc < rr->__ranges[0].__min) {
37 wc = rr->__ranges[0].__min;
45 +nextwctype(wint_t wc, wctype_t wct)
47 + return nextwctype_l(wc, wct, __current_locale());