X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..refs/heads/master:/stdio/FreeBSD/putwc.c?ds=sidebyside diff --git a/stdio/FreeBSD/putwc.c b/stdio/FreeBSD/putwc.c index 0feec5b..e854309 100644 --- a/stdio/FreeBSD/putwc.c +++ b/stdio/FreeBSD/putwc.c @@ -27,6 +27,8 @@ #include __FBSDID("$FreeBSD: src/lib/libc/stdio/putwc.c,v 1.3 2004/05/25 10:42:52 tjr Exp $"); +#include "xlocale_private.h" + #include "namespace.h" #include #include @@ -44,5 +46,13 @@ wint_t putwc(wchar_t wc, FILE *fp) { - return (fputwc(wc, fp)); + return (fputwc_l(wc, fp, __current_locale())); +} + +wint_t +putwc_l(wchar_t wc, FILE *fp, locale_t loc) +{ + + /* no need to call NORMALIZE_LOCALE(loc) because fputwc_l will */ + return (fputwc_l(wc, fp, loc)); }