Add setlocale LC_CTYPE
This commit is contained in:
parent
5e59c0728e
commit
05b58bb50b
@ -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