1 --- sscanf.c.orig 2003-05-20 15:22:44.000000000 -0700
2 +++ sscanf.c 2005-02-23 16:42:49.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/stdio/sscanf.c,v 1.11 2002/10/12 16:13:41 mike Exp $");
7 +#include "xlocale_private.h"
16 - ret = __svfscanf(&f, fmt, ap);
17 + ret = __svfscanf_l(&f, __current_locale(), fmt, ap);
23 +sscanf_l(const char * __restrict str, locale_t loc, char const * __restrict fmt, ...)
27 + struct __sFILEX extra;
30 + NORMALIZE_LOCALE(loc);
33 + f._bf._base = f._p = (unsigned char *)str;
34 + f._bf._size = f._r = strlen(str);
41 + ret = __svfscanf_l(&f, loc, fmt, ap);