Original commit message from CVS:
* gst/apetag/gstapedemux.c: (ape_demux_parse_tags):
Use g_strtod() instead of sscanf to parse doubles, so that it will
try parsing in the C locale if the current locale fails.
Fixes: #382982
Patch by: Sebastian Dröge <mail at slomosnail de >
+2006-12-06 Jan Schmidt <thaytan@mad.scientist.com>
+
+ * gst/apetag/gstapedemux.c: (ape_demux_parse_tags):
+ Use g_strtod() instead of sscanf to parse doubles, so that it will
+ try parsing in the C locale if the current locale fails.
+ Fixes: #382982
+ Patch by: Sebastian Dröge <mail at slomosnail de >
+
2006-12-01 Jan Schmidt <thaytan@mad.scientist.com>
* win32/MANIFEST:
}
case G_TYPE_DOUBLE:{
gdouble v_double;
+ gchar *endptr;
- if (sscanf (val, "%lf", &v_double) == 1) {
+ v_double = g_strtod (val, &endptr);
+ if (endptr != val) {
g_value_init (&v, G_TYPE_DOUBLE);
g_value_set_double (&v, v_double);
}
+
break;
}
default:{