diff options
author | ache <ache@FreeBSD.org> | 1995-10-26 22:26:15 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-26 22:26:15 +0000 |
commit | 2d15e6d04ba4655c457972667da67ee0868e5ce0 (patch) | |
tree | 376949edd1867291d4e71b8b8b9f4bcbea901c33 /usr.bin/vis/vis.c | |
parent | cdd7bd00d11a66781d1e11411246a8e541d472e2 (diff) | |
download | FreeBSD-src-2d15e6d04ba4655c457972667da67ee0868e5ce0.zip FreeBSD-src-2d15e6d04ba4655c457972667da67ee0868e5ce0.tar.gz |
Add setlocale LC_CTYPE
Diffstat (limited to 'usr.bin/vis/vis.c')
-rw-r--r-- | usr.bin/vis/vis.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <stdio.h> #include <vis.h> +#include <locale.h> 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': |