1 --- btowc.c.orig Thu Nov 25 11:38:16 2004
2 +++ btowc.c Fri Feb 18 15:58:50 2005
5 __FBSDID("$FreeBSD: src/lib/libc/locale/btowc.c,v 1.4 2004/05/12 14:26:54 tjr Exp $");
7 +#include "xlocale_private.h"
15 +btowc_l(int c, locale_t loc)
17 static const mbstate_t initial;
18 mbstate_t mbs = initial;
22 + NORMALIZE_LOCALE(loc);
30 - if (__mbrtowc(&wc, &cc, 1, &mbs) > 1)
31 + if (loc->__lc_ctype->__mbrtowc(&wc, &cc, 1, &mbs, loc) > 1)
39 + return btowc_l(c, __current_locale());