Add setlocale LC_TIME

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

View File

@ -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);