]> git.saurik.com Git - apple/libc.git/blobdiff - stdio/FreeBSD/vprintf.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / stdio / FreeBSD / vprintf.c
index b11af0d74338366ce799c42fc7c5a2fa321ab52c..894cd79bcf847371f5506591d802b73eb48e2fa0 100644 (file)
@@ -36,11 +36,21 @@ static char sccsid[] = "@(#)vprintf.c       8.1 (Berkeley) 6/4/93";
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: src/lib/libc/stdio/vprintf.c,v 1.11 2007/01/09 00:28:08 imp Exp $");
 
+#include "xlocale_private.h"
+
 #include <stdio.h>
 
 int
 vprintf(const char * __restrict fmt, __va_list ap)
 {
 
-       return (vfprintf(stdout, fmt, ap));
+       return (vfprintf_l(stdout, __current_locale(), fmt, ap));
+}
+
+int
+vprintf_l(locale_t loc, const char * __restrict fmt, __va_list ap)
+{
+
+       /* no need to call NORMALIZE_LOCALE(loc) because vfprintf_l will */
+       return (vfprintf_l(stdout, loc, fmt, ap));
 }