summaryrefslogtreecommitdiff
path: root/src/m4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m4.c')
-rw-r--r--src/m4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/m4.c b/src/m4.c
index 3c43e407..91750aba 100644
--- a/src/m4.c
+++ b/src/m4.c
@@ -419,6 +419,10 @@ main (int argc, char *const *argv)
set_program_name (argv[0]);
retcode = EXIT_SUCCESS;
setlocale (LC_ALL, "");
+ /* m4 1.4.x does not want locale-aware decimal separators in the
+ format builtin; easiest is to override the user's choice of
+ LC_NUMERIC. */
+ setlocale (LC_NUMERIC, "C");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
atexit (close_stdin);