Use locale-independent functions to parse numbers

https://bugzilla.gnome.org/show_bug.cgi?id=788087
This commit is contained in:
Emmanuele Bassi 2017-09-24 14:32:26 +01:00
parent 52727afbd2
commit a6b5da2a4f

View File

@ -992,19 +992,19 @@ _g_ir_node_param_direction_string (GIrNodeParam * node)
static gint64 static gint64
parse_int_value (const gchar *str) parse_int_value (const gchar *str)
{ {
return strtoll (str, NULL, 0); return g_ascii_strtoll (str, NULL, 0);
} }
static guint64 static guint64
parse_uint_value (const gchar *str) parse_uint_value (const gchar *str)
{ {
return strtoull (str, NULL, 0); return g_ascii_strtoull (str, NULL, 0);
} }
static gdouble static gdouble
parse_float_value (const gchar *str) parse_float_value (const gchar *str)
{ {
return strtod (str, NULL); return g_ascii_strtod (str, NULL);
} }
static gboolean static gboolean