1 --- printf.c.bsdnew 2009-11-11 13:33:13.000000000 -0800
2 +++ printf.c 2009-11-11 13:33:13.000000000 -0800
3 @@ -36,6 +36,8 @@ static char sccsid[] = "@(#)printf.c 8.1
5 __FBSDID("$FreeBSD: src/lib/libc/stdio/printf.c,v 1.11 2007/01/09 00:28:07 imp Exp $");
7 +#include "xlocale_private.h"
12 @@ -46,7 +48,20 @@ printf(char const * __restrict fmt, ...)
16 - ret = vfprintf(stdout, fmt, ap);
17 + ret = vfprintf_l(stdout, __current_locale(), fmt, ap);
23 +printf_l(locale_t loc, char const * __restrict fmt, ...)
28 + /* no need to call NORMALIZE_LOCALE(loc) because vfprintf_l will */
30 + ret = vfprintf_l(stdout, loc, fmt, ap);