Add setlocale LC_TIME|LC_CTYPE

This commit is contained in:
Andrey A. Chernov 1995-10-24 03:06:09 +00:00
parent a606079304
commit baf72ec10c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11755

View File

@ -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 == '-')