1 --- strtouq.c.bsdnew 2009-11-13 14:11:52.000000000 -0800
2 +++ strtouq.c 2009-11-13 14:11:52.000000000 -0800
3 @@ -33,6 +33,8 @@ static char sccsid[] = "@(#)strtouq.c 8.
5 __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtouq.c,v 1.12 2007/01/09 00:28:10 imp Exp $");
7 +#include "xlocale_private.h"
12 @@ -44,5 +46,13 @@ u_quad_t
13 strtouq(const char *nptr, char **endptr, int base)
16 - return strtoull(nptr, endptr, base);
17 + return strtoull_l(nptr, endptr, base, __current_locale());
21 +strtouq_l(const char *nptr, char **endptr, int base, locale_t loc)
24 + /* no need to call NORMALIZE_LOCALE(loc) because strtoull_l will */
25 + return strtoull_l(nptr, endptr, base, loc);