summaryrefslogtreecommitdiffstats
path: root/usr.bin/rwho
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-24 04:09:49 +0000
committerache <ache@FreeBSD.org>1995-10-24 04:09:49 +0000
commit4f25f985420d77c9ec23e93a2c2fb11fb9a1b074 (patch)
tree3f45078a4ef73ebc6728d02c67bae15caec71e71 /usr.bin/rwho
parentf3587c7ea3ae1b25e20bb0998ac26d712aee3022 (diff)
downloadFreeBSD-src-4f25f985420d77c9ec23e93a2c2fb11fb9a1b074.zip
FreeBSD-src-4f25f985420d77c9ec23e93a2c2fb11fb9a1b074.tar.gz
Add setlocale LT_TIME
Diffstat (limited to 'usr.bin/rwho')
-rw-r--r--usr.bin/rwho/rwho.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c
index c7f8398..0f6570e 100644
--- a/usr.bin/rwho/rwho.c
+++ b/usr.bin/rwho/rwho.c
@@ -48,6 +48,7 @@ static char sccsid[] = "@(#)rwho.c 8.1 (Berkeley) 6/6/93";
#include <stdio.h>
#include <time.h>
#include <string.h>
+#include <locale.h>
DIR *dirp;
@@ -85,6 +86,8 @@ main(argc, argv)
int f, n, i;
time_t time();
+ (void) setlocale(LC_TIME, "");
+
while ((ch = getopt(argc, argv, "a")) != EOF)
switch((char)ch) {
case 'a':
OpenPOWER on IntegriCloud