1 --- gdtoa-gethex.c.orig 2005-02-17 01:16:50.000000000 -0800
2 +++ gdtoa-gethex.c 2005-02-17 01:27:10.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 -gethex(sp, fpi, exp, bp, sign)
17 - CONST char **sp; FPI *fpi; Long *exp; Bigint **bp; int sign;
18 +gethex(sp, fpi, exp, bp, sign, loc)
19 + CONST char **sp; FPI *fpi; Long *exp; Bigint **bp; int sign; locale_t loc;
21 -gethex( CONST char **sp, FPI *fpi, Long *exp, Bigint **bp, int sign)
22 +gethex( CONST char **sp, FPI *fpi, Long *exp, Bigint **bp, int sign, locale_t loc)
27 ULong L, lostbits, *x;
30 - unsigned char decimalpoint = *localeconv()->decimal_point;
31 + unsigned char decimalpoint;
33 + NORMALIZE_LOCALE(loc);
34 + decimalpoint = *localeconv_l(loc)->decimal_point;
36 #define decimalpoint '.'