cond_state = PPDC_COND_NORMAL;
cond_current = cond_stack;
cond_stack[0] = PPDC_COND_NORMAL;
+ locdata = localeconv();
// Add standard #define variables...
#define MAKE_STRING(x) #x
return (-1.0f);
}
- val = (float)strtod(temp, &ptr);
+ val = (float)_cupsStrScand(temp, &ptr, locdata);
if (*ptr)
{
return (-1.0f);
// Get the floating point value of "s" and skip all digits and decimal points.
- val = (float)strtod(buffer, &ptr);
+ val = (float)_cupsStrScand(buffer, &ptr, locdata);
// Check for a trailing unit specifier...
if (!_cups_strcasecmp(ptr, "mm"))
# include <cups/file.h>
# include <stdlib.h>
+# include <locale.h>
//
int cond_state, // Cumulative conditional state
*cond_current, // Current #if state
cond_stack[101]; // #if state stack
-
+ struct lconv *locdata; // Locale data
ppdcSource(const char *f = 0, cups_file_t *ffp = (cups_file_t *)0);
~ppdcSource();