From a2252ba28252bb743c835ccee144a099e410ba4c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 5 Sep 2020 05:08:12 +0200 Subject: [PATCH] Use g_ascii_strtoll instead of strtol. The former is locale sensitive. --- src/ui/gui/psppire-scanf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-scanf.c b/src/ui/gui/psppire-scanf.c index 986f48c79f..88128a3090 100644 --- a/src/ui/gui/psppire-scanf.c +++ b/src/ui/gui/psppire-scanf.c @@ -107,11 +107,11 @@ guts (PsppireScanf *scanf) int width = 0; if (dir.precision_start && dir.precision_end) - precision = strtol (dir.precision_start + 1, + precision = g_ascii_strtoll (dir.precision_start + 1, (char **) &dir.precision_end, 10); if (dir.width_start && dir.width_end) - width = strtol (dir.width_start, (char **) &dir.width_end, 10); + width = g_ascii_strtoll (dir.width_start, (char **) &dir.width_end, 10); if (dir.dir_start > s) ship_label (scanf, &s, &scanf->d, i); -- 2.30.2