X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/9385eb3d10ebe5eb398c52040ec3dbfba9b0cdcf..23e20b0053d7317ce3facd3fd38db8c73c2c380a:/stdio/FreeBSD/vwprintf.c diff --git a/stdio/FreeBSD/vwprintf.c b/stdio/FreeBSD/vwprintf.c index 4390c06..634f06d 100644 --- a/stdio/FreeBSD/vwprintf.c +++ b/stdio/FreeBSD/vwprintf.c @@ -27,6 +27,8 @@ #include __FBSDID("$FreeBSD: src/lib/libc/stdio/vwprintf.c,v 1.1 2002/09/21 13:00:30 tjr Exp $"); +#include "xlocale_private.h" + #include #include #include @@ -35,5 +37,13 @@ int vwprintf(const wchar_t * __restrict fmt, va_list ap) { - return (vfwprintf(stdout, fmt, ap)); + return (vfwprintf_l(stdout, __current_locale(), fmt, ap)); +} + +int +vwprintf_l(locale_t loc, const wchar_t * __restrict fmt, va_list ap) +{ + + /* no need to call NORMALIZE_LOCALE(loc) because vfwprintf_l will */ + return (vfwprintf_l(stdout, loc, fmt, ap)); }