Use g_ascii_strto[u]ll instead of strto[u]l

We don't want GtkBuilder input to be locale-dependent.

Bug #632503
This commit is contained in:
=Christian Persch
2010-10-25 12:22:20 -04:00
committed by Matthias Clasen
parent 377e7179b8
commit d3f1745493
5 changed files with 45 additions and 28 deletions

View File

@ -335,9 +335,9 @@ attributes_text_element (GMarkupParseContext *context,
if (!parser_data->attr_name)
return;
errno = 0;
string = g_strndup (text, text_len);
l = strtol (string, &endptr, 0);
errno = 0;
l = g_ascii_strtoll (string, &endptr, 0);
if (errno || endptr == string)
{
g_set_error (error,