1 --- vscanf.c.bsdnew 2009-11-11 13:33:19.000000000 -0800
2 +++ vscanf.c 2009-11-11 13:33:19.000000000 -0800
3 @@ -36,6 +36,8 @@ static char sccsid[] = "@(#)vscanf.c 8.1
5 __FBSDID("$FreeBSD: src/lib/libc/stdio/vscanf.c,v 1.13 2007/01/09 00:28:08 imp Exp $");
7 +#include "xlocale_private.h"
11 #include "un-namespace.h"
12 @@ -50,7 +52,22 @@ vscanf(fmt, ap)
16 - retval = __svfscanf(stdin, fmt, ap);
17 + retval = __svfscanf_l(stdin, __current_locale(), fmt, ap);
23 +vscanf_l(loc, fmt, ap)
25 + const char * __restrict fmt;
30 + NORMALIZE_LOCALE(loc);
32 + retval = __svfscanf_l(stdin, loc, fmt, ap);