From 605abcde5ef3cf0e6bf34e0f704b0d893f6f4810 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 17 Jul 1995 12:37:50 +0000 Subject: [PATCH] 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 f019bdca81d3..fe2563940d96 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.