summaryrefslogtreecommitdiffstats
path: root/usr.bin/who/who.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-24 04:06:02 +0000
committerache <ache@FreeBSD.org>1995-10-24 04:06:02 +0000
commitf3587c7ea3ae1b25e20bb0998ac26d712aee3022 (patch)
tree6a3da34ca5530b89d06154ab4f8dc577a3ca32c4 /usr.bin/who/who.c
parentbba89021dc864d302c23d9a215c3acbfddb21ba8 (diff)
downloadFreeBSD-src-f3587c7ea3ae1b25e20bb0998ac26d712aee3022.zip
FreeBSD-src-f3587c7ea3ae1b25e20bb0998ac26d712aee3022.tar.gz
Add setlocale LC_TIME
Diffstat (limited to 'usr.bin/who/who.c')
-rw-r--r--usr.bin/who/who.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index 77a131c..3060881 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -50,6 +50,7 @@ static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93";
#include <pwd.h>
#include <utmp.h>
#include <stdio.h>
+#include <locale.h>
main(argc, argv)
int argc;
@@ -61,6 +62,8 @@ main(argc, argv)
FILE *ufp, *file();
char *t, *rindex(), *strcpy(), *strncpy(), *ttyname();
+ (void) setlocale(LC_TIME, "");
+
switch (argc) {
case 1: /* who */
ufp = file(_PATH_UTMP);
OpenPOWER on IntegriCloud