1 --- gdtoa-strtod.c.orig 2005-01-20 20:12:37.000000000 -0800
2 +++ gdtoa-strtod.c 2005-02-17 01:31:26.000000000 -0800
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, &fpi, &exp, &bb, sign)) & STRTOG_Retmask) {
32 + switch((i = gethex(&s, &fpi, &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());