1 --- mbsinit.c.orig Thu Nov 25 11:38:18 2004
2 +++ mbsinit.c Fri Feb 18 16:12:33 2005
5 __FBSDID("$FreeBSD: src/lib/libc/locale/mbsinit.c,v 1.3 2004/05/12 14:09:04 tjr Exp $");
7 +#include "xlocale_private.h"
13 -mbsinit(const mbstate_t *ps)
14 +mbsinit_l(const mbstate_t *ps, locale_t loc)
17 - return (__mbsinit(ps));
18 + NORMALIZE_LOCALE(loc);
19 + return (loc->__lc_ctype->__mbsinit(ps, loc));
23 +mbsinit(const mbstate_t *ps)
25 + return mbsinit_l(ps, __current_locale());