glsl: new glsl_strtod() wrapper to fix decimal point interpretation

We always want to use '.' as the decimal point.

See http://bugs.freedesktop.org/show_bug.cgi?id=24531

NOTE: this is a candidate for the 7.10 branch.
This commit is contained in:
Brian Paul
2010-12-13 08:41:08 -07:00
parent dfbc20593e
commit bb10e081c8
8 changed files with 329 additions and 229 deletions

View File

@@ -62,7 +62,7 @@ read_atom(void *ctx, const char *& src)
// Check if the atom is a number.
char *float_end = NULL;
double f = strtod(src, &float_end);
double f = glsl_strtod(src, &float_end);
if (float_end != src) {
char *int_end = NULL;
int i = strtol(src, &int_end, 10);