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:
This commit is contained in:
Peter Wemm 1995-07-17 12:37:50 +00:00
parent 1ce781c3af
commit 605abcde5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9559

View File

@ -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.