From c8975f103d9378fd640ce21b5dea7f2205241ce1 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 10 Jan 1996 21:42:14 +0000 Subject: Localize it. --- usr.bin/wc/wc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin/wc/wc.c') diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index a50196c..1f1c9b3 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -44,6 +44,7 @@ static char sccsid[] = "@(#)wc.c 8.1 (Berkeley) 6/6/93"; #include #include #include +#include #include #include #include @@ -66,6 +67,8 @@ main(argc, argv) register int ch; int total; + (void) setlocale(LC_CTYPE, ""); + while ((ch = getopt(argc, argv, "lwc")) != EOF) switch((char)ch) { case 'l': @@ -115,9 +118,9 @@ void cnt(file) char *file; { - register u_char *p; + register u_char *p, ch; register short gotsp; - register int ch, len; + register int len; register u_long linect, wordct, charct; struct stat sb; int fd; -- cgit v1.1