From 13a2f9572b914e811a78fa9efc5edd056a1b2e3f Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 17 Jul 1995 12:37:50 +0000 Subject: 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: --- usr.bin/more/main.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include +#include 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. -- cgit v1.1