Loading...
--- Libc/Libc-391.2.7/stdio/FreeBSD/fprintf.c.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- fprintf.c.orig 2003-05-20 15:22:41.000000000 -0700
-+++ fprintf.c 2005-02-23 16:20:47.000000000 -0800
-@@ -40,6 +40,8 @@
- #include <sys/cdefs.h>
- __FBSDID("$FreeBSD: src/lib/libc/stdio/fprintf.c,v 1.10 2002/09/06 11:23:55 tjr Exp $");
-
-+#include "xlocale_private.h"
-+
- #include <stdio.h>
- #include <stdarg.h>
-
-@@ -50,7 +52,20 @@
- va_list ap;
-
- va_start(ap, fmt);
-- ret = vfprintf(fp, fmt, ap);
-+ ret = vfprintf_l(fp, __current_locale(), fmt, ap);
-+ va_end(ap);
-+ return (ret);
-+}
-+
-+int
-+fprintf_l(FILE * __restrict fp, locale_t loc, const char * __restrict fmt, ...)
-+{
-+ int ret;
-+ va_list ap;
-+
-+ /* no need to call NORMALIZE_LOCALE(loc), because vfprintf_l will */
-+ va_start(ap, fmt);
-+ ret = vfprintf_l(fp, loc, fmt, ap);
- va_end(ap);
- return (ret);
- }