diff options
author | peter <peter@FreeBSD.org> | 1995-07-17 12:37:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-07-17 12:37:50 +0000 |
commit | 13a2f9572b914e811a78fa9efc5edd056a1b2e3f (patch) | |
tree | 5d6f88f577df7ce4e62b8243f872e9541ffdd4b5 /usr.bin/more | |
parent | 8114a421df73c488312fca17568e3d15a6536745 (diff) | |
download | FreeBSD-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.c | 3 |
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. |