From 91d01e8e8411ebeb07dc06da833bee0c5a75d61c Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 26 Oct 1995 23:10:10 +0000 Subject: Add setlocale LC_TIME --- usr.sbin/ac/ac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ac/ac.c') 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 @@ -28,6 +28,7 @@ static char rcsid[] = "$Id: ac.c,v 1.2 1994/11/14 20:26:52 ache Exp $"; #include #include #include +#include /* * 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) { -- cgit v1.1