Loading...
stdio/FreeBSD/vsprintf.c Libc-1725.40.4 Libc-825.26
--- Libc/Libc-1725.40.4/stdio/FreeBSD/vsprintf.c
+++ Libc/Libc-825.26/stdio/FreeBSD/vsprintf.c
@@ -51,13 +51,14 @@
 	f._extra = &ext;
 	INITEXTRA(&f);
 
+	NORMALIZE_LOCALE(loc);
 	f._file = -1;
 	f._flags = __SWR | __SSTR;
 	f._bf._base = f._p = (unsigned char *)str;
 	f._bf._size = f._w = INT_MAX;
 	f._orientation = 0;
 	memset(&f._mbstate, 0, sizeof(mbstate_t));
-	ret = __v2printf(XPRINTF_PLAIN, NULL, &f, loc, fmt, ap);
+	ret = __vfprintf(&f, loc, fmt, ap);
 	*f._p = 0;
 	return (ret);
 }