mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 05:55:27 +01:00
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:
parent
1ce781c3af
commit
605abcde5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9559
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user