X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..15de9d6b4ab2de27ae24b13b7b6c4d55fffe4aef:/locale/FreeBSD/mbsinit.c diff --git a/locale/FreeBSD/mbsinit.c b/locale/FreeBSD/mbsinit.c index cddb567..bbc2266 100644 --- a/locale/FreeBSD/mbsinit.c +++ b/locale/FreeBSD/mbsinit.c @@ -27,12 +27,21 @@ #include __FBSDID("$FreeBSD: src/lib/libc/locale/mbsinit.c,v 1.3 2004/05/12 14:09:04 tjr Exp $"); +#include "xlocale_private.h" + #include #include "mblocal.h" int -mbsinit(const mbstate_t *ps) +mbsinit_l(const mbstate_t *ps, locale_t loc) { - return (__mbsinit(ps)); + NORMALIZE_LOCALE(loc); + return (loc->__lc_ctype->__mbsinit(ps, loc)); +} + +int +mbsinit(const mbstate_t *ps) +{ + return mbsinit_l(ps, __current_locale()); }