summaryrefslogtreecommitdiffstats
path: root/usr.bin/w
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-24 03:06:09 +0000
committerache <ache@FreeBSD.org>1995-10-24 03:06:09 +0000
commitbba89021dc864d302c23d9a215c3acbfddb21ba8 (patch)
tree1b07e8e09d159a099e7d8e46c77ce86891ad82d5 /usr.bin/w
parent39ae8a4e434d03becbe60efa2e60e4f97b7fec1f (diff)
downloadFreeBSD-src-bba89021dc864d302c23d9a215c3acbfddb21ba8.zip
FreeBSD-src-bba89021dc864d302c23d9a215c3acbfddb21ba8.tar.gz
Add setlocale LC_TIME|LC_CTYPE
Diffstat (limited to 'usr.bin/w')
-rw-r--r--usr.bin/w/w.c3
1 files changed, 3 insertions, 0 deletions
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 <unistd.h>
#include <utmp.h>
#include <vis.h>
+#include <locale.h>
#include <arpa/nameser.h>
#include <resolv.h>
@@ -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 == '-')
OpenPOWER on IntegriCloud