Add setlocale LC_CTYPE
This commit is contained in:
parent
5ccbfb26fb
commit
f1e4dd10de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11824
@ -43,6 +43,7 @@ static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 6/6/93";
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <vis.h>
|
#include <vis.h>
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
int eflags, fold, foldwidth=80, none, markeol, debug;
|
int eflags, fold, foldwidth=80, none, markeol, debug;
|
||||||
|
|
||||||
@ -55,6 +56,8 @@ main(argc, argv)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
|
(void) setlocale(LC_CTYPE, "");
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "nwctsobfF:ld")) != EOF)
|
while ((ch = getopt(argc, argv, "nwctsobfF:ld")) != EOF)
|
||||||
switch((char)ch) {
|
switch((char)ch) {
|
||||||
case 'n':
|
case 'n':
|
||||||
|
Loading…
Reference in New Issue
Block a user