summaryrefslogtreecommitdiffstats
path: root/usr.bin/more
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-24 05:18:36 +0000
committerache <ache@FreeBSD.org>1995-10-24 05:18:36 +0000
commit450b9b98cfa4538be1bf1197e871a4d379b5c579 (patch)
tree462dfe97c855c1c7e7a86fa4a743d1b452d77161 /usr.bin/more
parent77a5efddf4b5d7df8a4c51e46f663d22d2d294a2 (diff)
downloadFreeBSD-src-450b9b98cfa4538be1bf1197e871a4d379b5c579.zip
FreeBSD-src-450b9b98cfa4538be1bf1197e871a4d379b5c579.tar.gz
Add setlocale LC_CTYPE
Diffstat (limited to 'usr.bin/more')
-rw-r--r--usr.bin/more/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/more/main.c b/usr.bin/more/main.c
index f019bdc..852b1f8 100644
--- a/usr.bin/more/main.c
+++ b/usr.bin/more/main.c
@@ -50,7 +50,9 @@ static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/7/93";
#include <sys/types.h>
#include <sys/file.h>
#include <stdio.h>
-#include <less.h>
+#include <stdlib.h>
+#include <locale.h>
+#include "less.h"
int ispipe;
int new_file;
@@ -250,7 +252,9 @@ main(argc, argv)
char **argv;
{
int envargc, argcnt;
- char *envargv[2], *getenv();
+ char *envargv[2];
+
+ (void) setlocale(LC_CTYPE, "");
/*
* Process command line arguments and MORE environment arguments.
OpenPOWER on IntegriCloud