diff options
Diffstat (limited to 'usr.bin/who')
-rw-r--r-- | usr.bin/who/who.c | 3 |
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); |