1 --- vasprintf.c.orig 2003-05-20 15:22:44.000000000 -0700
2 +++ vasprintf.c 2005-02-23 18:55:18.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/stdio/vasprintf.c,v 1.18 2002/09/26 13:11:24 tjr Exp $");
7 +#include "xlocale_private.h"
13 f._bf._size = f._w = 127; /* Leave room for the NUL */
16 - ret = __vfprintf(&f, fmt, ap);
17 + ret = __vfprintf(&f, __current_locale(), fmt, ap);
25 + *str = (char *)f._bf._base;
30 +vasprintf_l(str, loc, fmt, ap)
38 + struct __sFILEX ext;
40 + NORMALIZE_LOCALE(loc);
42 + f._flags = __SWR | __SSTR | __SALC;
43 + f._bf._base = f._p = (unsigned char *)malloc(128);
44 + if (f._bf._base == NULL) {
49 + f._bf._size = f._w = 127; /* Leave room for the NUL */
52 + ret = __vfprintf(&f, loc, fmt, ap);