1 --- strtoq.c.orig 2003-05-20 15:23:25.000000000 -0700
2 +++ strtoq.c 2005-02-23 18:26:32.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoq.c,v 1.11 2002/08/15 09:25:04 robert Exp $");
7 +#include "xlocale_private.h"
13 strtoq(const char *nptr, char **endptr, int base)
16 - return strtoll(nptr, endptr, base);
17 + return strtoll_l(nptr, endptr, base, __current_locale());
21 +strtoq_l(const char *nptr, char **endptr, int base, locale_t loc)
24 + /* no need to call NORMALIZE_LOCALE(loc) because strtoll_l will */
25 + return strtoll_l(nptr, endptr, base, loc);