From 965f310ce12bca3635595681d5a43d97d4dd4fb4 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 24 Oct 1995 04:06:02 +0000 Subject: [PATCH] Add setlocale LC_TIME --- usr.bin/who/who.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 77a131cb0375..306088180a73 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 #include #include +#include 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);