Add setlocale LC_CTYPE
This commit is contained in:
parent
cdd7bd00d1
commit
2d15e6d04b
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user