1 --- gdtoa-strtod.c.orig 2005-10-08 11:32:33.000000000 -0700
2 +++ gdtoa-strtod.c 2005-10-08 11:38:17.000000000 -0700
4 /* Please send bug reports to David M. Gay (dmg at acm dot org,
5 * with " at " changed at "@" and " dot " changed to "."). */
7 +#include "xlocale_private.h"
19 - (s00, se) CONST char *s00; char **se;
20 + (s00, se, loc) CONST char *s00; char **se; locale_t loc;
22 - (CONST char *s00, char **se)
23 + (CONST char *s00, char **se, locale_t loc)
26 #ifdef Avoid_Underflow
31 - switch((i = gethex(&s, &fpi1, &exp, &bb, sign)) & STRTOG_Retmask) {
32 + switch((i = gethex(&s, &fpi1, &exp, &bb, sign, loc)) & STRTOG_Retmask) {
40 + NORMALIZE_LOCALE(loc);
42 - if (c == *localeconv()->decimal_point)
43 + if (c == *localeconv_l(loc)->decimal_point)
48 return sign ? -dval(rv) : dval(rv);
54 + (s00, se) CONST char *s00; char **se;
56 + (CONST char *s00, char **se)
59 + return strtod_l(s00, se, __current_locale());