From d3f1745493867d37f7c7cbe48002ce076c9db5f7 Mon Sep 17 00:00:00 2001 From: =Christian Persch Date: Mon, 25 Oct 2010 12:22:20 -0400 Subject: Use g_ascii_strto[u]ll instead of strto[u]l We don't want GtkBuilder input to be locale-dependent. Bug #632503 --- gtk/gtkcelllayout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkcelllayout.c') diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c index 86e8e39644..8388b5f7d5 100644 --- a/gtk/gtkcelllayout.c +++ b/gtk/gtkcelllayout.c @@ -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, -- cgit v1.2.1