]> git.saurik.com Git - apple/libc.git/blobdiff - stdio/FreeBSD/putwc.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / stdio / FreeBSD / putwc.c
index 0feec5b621c571eb19f5039634195729b7f50ca7..e8543091ffc33ccab3d8f54e34ba73c66d0b3086 100644 (file)
@@ -27,6 +27,8 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: src/lib/libc/stdio/putwc.c,v 1.3 2004/05/25 10:42:52 tjr Exp $");
 
 #include <sys/cdefs.h>
 __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 <stdio.h>
 #include <wchar.h>
 #include "namespace.h"
 #include <stdio.h>
 #include <wchar.h>
@@ -44,5 +46,13 @@ wint_t
 putwc(wchar_t wc, FILE *fp)
 {
 
 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));
 }
 }