1 --- snprintf.c.orig 2003-05-20 15:22:43.000000000 -0700
2 +++ snprintf.c 2005-02-23 16:39:33.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/stdio/snprintf.c,v 1.20 2002/09/06 11:23:55 tjr Exp $");
7 +#include "xlocale_private.h"
13 f._bf._size = f._w = n;
16 - ret = __vfprintf(&f, fmt, ap);
17 + ret = __vfprintf(&f, __current_locale(), fmt, ap);
25 +snprintf_l(char * __restrict str, size_t n, locale_t loc,
26 + char const * __restrict fmt, ...)
32 + struct __sFILEX ext;
34 + NORMALIZE_LOCALE(loc);
42 + f._flags = __SWR | __SSTR;
43 + f._bf._base = f._p = (unsigned char *)str;
44 + f._bf._size = f._w = n;
47 + ret = __vfprintf(&f, loc, fmt, ap);