aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-07-12 02:48:40 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-07-12 02:48:40 +0000
commit338b72d96e0b1677eddb4f89aec31d0a970f58d6 (patch)
tree66eb322331d9b19686189d172f338ed1fa71b96e
parent47aa50e1554a33a13a7fb3d8077e3c20bd63e905 (diff)
downloadsrc-338b72d96e0b1677eddb4f89aec31d0a970f58d6.tar.gz
src-338b72d96e0b1677eddb4f89aec31d0a970f58d6.zip
Respect locale settings from the environment.
Notes
Notes: svn path=/head/; revision=132004
-rw-r--r--usr.bin/m4/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c
index a1cf0657638d..1c1ac45d1eda 100644
--- a/usr.bin/m4/main.c
+++ b/usr.bin/m4/main.c
@@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$");
#include <stddef.h>
#include <stdlib.h>
#include <err.h>
+#include <locale.h>
#include "mdef.h"
#include "stdd.h"
#include "extern.h"
@@ -182,6 +183,8 @@ main(int argc, char *argv[])
int rval;
char *p;
+ setlocale(LC_ALL, "");
+
traceout = stderr;
if (signal(SIGINT, SIG_IGN) != SIG_IGN)