diff options
author | ache <ache@FreeBSD.org> | 1995-10-26 23:10:10 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-26 23:10:10 +0000 |
commit | 91d01e8e8411ebeb07dc06da833bee0c5a75d61c (patch) | |
tree | 66be7d91274dfc7f6c1cdcbd8f42bae664528b36 /usr.sbin/ac | |
parent | 98cf39b81a671fc71fc5c715305c44ddbfc77a24 (diff) | |
download | FreeBSD-src-91d01e8e8411ebeb07dc06da833bee0c5a75d61c.zip FreeBSD-src-91d01e8e8411ebeb07dc06da833bee0c5a75d61c.tar.gz |
Add setlocale LC_TIME
Diffstat (limited to 'usr.sbin/ac')
-rw-r--r-- | usr.sbin/ac/ac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index 0305909..d754dd6 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -14,7 +14,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ac.c,v 1.2 1994/11/14 20:26:52 ache Exp $"; +static char rcsid[] = "$Id: ac.c,v 1.3 1995/05/30 03:45:34 rgrimes Exp $"; #endif #include <sys/types.h> @@ -28,6 +28,7 @@ static char rcsid[] = "$Id: ac.c,v 1.2 1994/11/14 20:26:52 ache Exp $"; #include <string.h> #include <utmp.h> #include <unistd.h> +#include <locale.h> /* * this is for our list of currently logged in sessions @@ -225,6 +226,8 @@ main(argc, argv) FILE *fp; int c; + (void) setlocale(LC_TIME, ""); + fp = NULL; while ((c = getopt(argc, argv, "Dc:dpt:w:")) != EOF) { switch (c) { |