1 --- strtoumax.c.orig 2003-05-20 15:23:25.000000000 -0700
2 +++ strtoumax.c 2005-02-23 13:24:30.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoumax.c,v 1.8 2002/09/06 11:23:59 tjr Exp $");
7 +#include "xlocale_private.h"
13 * alphabets and digits are each contiguous.
16 -strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base)
17 +strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base,
26 + NORMALIZE_LOCALE(loc);
28 * See strtoimax for comments as to the logic used.
33 - } while (isspace((unsigned char)c));
34 + } while (isspace_l((unsigned char)c, loc));
39 *endptr = (char *)(any ? s - 1 : nptr);
44 +strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base)
46 + return strtoumax_l(nptr, endptr, base, __current_locale());