1 --- gdtoa-strtodg.c.orig 2005-01-20 20:12:37.000000000 -0800
2 +++ gdtoa-strtodg.c 2005-02-17 01:32:24.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"
16 - (s00, se, fpi, exp, bits)
17 - CONST char *s00; char **se; FPI *fpi; Long *exp; ULong *bits;
18 + (s00, se, fpi, exp, bits, loc)
19 + CONST char *s00; char **se; FPI *fpi; Long *exp; ULong *bits; locale_t loc;
21 - (CONST char *s00, char **se, FPI *fpi, Long *exp, ULong *bits)
22 + (CONST char *s00, char **se, FPI *fpi, Long *exp, ULong *bits, locale_t loc)
30 - irv = gethex(&s, fpi, exp, &rvb, sign);
31 + irv = gethex(&s, fpi, exp, &rvb, sign, loc);
32 if (irv == STRTOG_NoNumber) {
39 + NORMALIZE_LOCALE(loc);
41 - if (c == *localeconv()->decimal_point)
42 + if (c == *localeconv_l(loc)->decimal_point)
49 irv = STRTOG_Underflow | STRTOG_Inexlo;
55 rvb->x[0] = rvb->wds = rvbits = 1;