From d69572fbae2d25a2c51d846733a49d45e5b04269 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 30 May 2016 15:50:05 -0400 Subject: Always force number on -v arguments, even if LC_NUMERIC not defined. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index fa4bceed..cb434f90 100644 --- a/main.c +++ b/main.c @@ -3,7 +3,7 @@ */ /* - * Copyright (C) 1986, 1988, 1989, 1991-2015 the Free Software Foundation, Inc. + * Copyright (C) 1986, 1988, 1989, 1991-2016 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -1134,7 +1134,9 @@ arg_assign(char *arg, bool initing) */ if (do_posix) setlocale(LC_NUMERIC, "C"); +#endif /* LC_NUMERIC */ (void) force_number(it); +#ifdef LC_NUMERIC if (do_posix) setlocale(LC_NUMERIC, locale); #endif /* LC_NUMERIC */ -- cgit v1.2.3