1 --- mbsinit.c.orig 2009-11-09 15:05:25.000000000 -0800
2 +++ mbsinit.c 2009-11-09 15:05:25.000000000 -0800
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());