From bba89021dc864d302c23d9a215c3acbfddb21ba8 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 24 Oct 1995 03:06:09 +0000 Subject: Add setlocale LC_TIME|LC_CTYPE --- usr.bin/w/w.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.bin/w') diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 664d56f..1460e26 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -75,6 +75,7 @@ static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94"; #include #include #include +#include #include #include @@ -130,6 +131,8 @@ main(argc, argv) char *memf, *nlistf, *p, *vis_args, *x; char buf[MAXHOSTNAMELEN], errbuf[256]; + (void) setlocale(LC_TIME|LC_CTYPE, ""); + /* Are we w(1) or uptime(1)? */ p = __progname; if (*p == '-') -- cgit v1.1