summaryrefslogtreecommitdiffstats
path: root/usr.bin/more
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-07-17 12:37:50 +0000
committerpeter <peter@FreeBSD.org>1995-07-17 12:37:50 +0000
commit13a2f9572b914e811a78fa9efc5edd056a1b2e3f (patch)
tree5d6f88f577df7ce4e62b8243f872e9541ffdd4b5 /usr.bin/more
parent8114a421df73c488312fca17568e3d15a6536745 (diff)
downloadFreeBSD-src-13a2f9572b914e811a78fa9efc5edd056a1b2e3f.zip
FreeBSD-src-13a2f9572b914e811a78fa9efc5edd056a1b2e3f.tar.gz
Make 'more' sensative to the current locale for it's ctype calls.
Reviewed by: Submitted by: Thomas Gellekum, with minor cosmetic changes from me. Obtained from:
Diffstat (limited to 'usr.bin/more')
-rw-r--r--usr.bin/more/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/more/main.c b/usr.bin/more/main.c
index f019bdc..fe25639 100644
--- a/usr.bin/more/main.c
+++ b/usr.bin/more/main.c
@@ -51,6 +51,7 @@ static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/7/93";
#include <sys/file.h>
#include <stdio.h>
#include <less.h>
+#include <locale.h>
int ispipe;
int new_file;
@@ -252,6 +253,8 @@ main(argc, argv)
int envargc, argcnt;
char *envargv[2], *getenv();
+ setlocale(LC_CTYPE, "");
+
/*
* Process command line arguments and MORE environment arguments.
* Command line arguments override environment arguments.
OpenPOWER on IntegriCloud