1 --- gdtoa-strtof.c.orig 2005-01-20 20:12:37.000000000 -0800
2 +++ gdtoa-strtof.c 2005-02-17 12:49:28.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"
13 -strtof(s, sp) CONST char *s; char **sp;
14 +strtof_l(s, sp, loc) CONST char *s; char **sp; locale_t loc;
16 -strtof(CONST char *s, char **sp)
17 +strtof_l(CONST char *s, char **sp, locale_t loc)
20 static FPI fpi = { 24, 1-127-24+1, 254-127-24+1, 1, SI };
23 union { ULong L[1]; float f; } u;
25 - k = strtodg(s, sp, &fpi, &exp, bits);
26 + NORMALIZE_LOCALE(loc);
27 + k = strtodg(s, sp, &fpi, &exp, bits, loc);
28 switch(k & STRTOG_Retmask) {
32 u.L[0] |= 0x80000000L;
38 +strtof(s, sp) CONST char *s; char **sp;
40 +strtof(CONST char *s, char **sp)
43 + return strtof_l(s, sp, __current_locale());