mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Add setlocale LC_TIME
This commit is contained in:
parent
baf72ec10c
commit
965f310ce1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11757
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user