From 2d15e6d04ba4655c457972667da67ee0868e5ce0 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 26 Oct 1995 22:26:15 +0000 Subject: Add setlocale LC_CTYPE --- usr.bin/vis/vis.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.bin/vis') diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c index 1706801..494ae57 100644 --- a/usr.bin/vis/vis.c +++ b/usr.bin/vis/vis.c @@ -43,6 +43,7 @@ static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93"; #include #include +#include int eflags, fold, foldwidth=80, none, markeol, debug; @@ -55,6 +56,8 @@ main(argc, argv) FILE *fp; int ch; + (void) setlocale(LC_CTYPE, ""); + while ((ch = getopt(argc, argv, "nwctsobfF:ld")) != EOF) switch((char)ch) { case 'n': -- cgit v1.1