1 --- inet_addr.c.orig 2003-05-20 15:22:14.000000000 -0700
2 +++ inet_addr.c 2005-02-24 17:08:54.000000000 -0800
5 __FBSDID("$FreeBSD: src/lib/libc/net/inet_addr.c,v 1.16 2002/04/19 04:46:20 suz Exp $");
7 +#include "xlocale_private.h"
11 #include <netinet/in.h>
16 + locale_t loc = __current_locale();
24 - val = strtoul(c, &endptr, 0);
25 + val = strtoul_l(c, &endptr, 0, loc);
27 if (errno == ERANGE) /* Fail completely if it overflowed. */
33 - if (isspace((unsigned char)*c)) {
34 + if (isspace_l((unsigned char)*c, loc)) {