1 --- sprintf.c.orig 2003-05-20 15:22:43.000000000 -0700
2 +++ sprintf.c 2005-02-23 16:40:52.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/stdio/sprintf.c,v 1.14 2002/09/06 11:23:55 tjr Exp $");
7 +#include "xlocale_private.h"
16 - ret = __vfprintf(&f, fmt, ap);
17 + ret = __vfprintf(&f, __current_locale(), fmt, ap);
24 +sprintf_l(char * __restrict str, locale_t loc, char const * __restrict fmt, ...)
29 + struct __sFILEX ext;
31 + NORMALIZE_LOCALE(loc);
33 + f._flags = __SWR | __SSTR;
34 + f._bf._base = f._p = (unsigned char *)str;
35 + f._bf._size = f._w = INT_MAX;
39 + ret = __vfprintf(&f, loc, fmt, ap);