From 238d3ffda9aabebb92607e2ec80a595b78477e99 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 24 Oct 1995 05:09:54 +0000 Subject: [PATCH] Add setlocale LC_TIME --- usr.bin/at/at.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 66655902c4f..80158bbc63c 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -47,6 +47,8 @@ #include #ifndef __FreeBSD__ #include +#else +#include #endif /* Local headers */ @@ -82,7 +84,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ -static char rcsid[] = "$Id: at.c,v 1.3 1995/08/08 15:24:51 ig25 Exp $"; +static char rcsid[] = "$Id: at.c,v 1.6 1995/08/21 12:32:45 ache Exp $"; char *no_export[] = { "TERM", "TERMCAP", "DISPLAY", "_" @@ -203,6 +205,10 @@ writefile(time_t runtimer, char queue) mode_t cmask; struct flock lock; +#ifdef __FreeBSD__ + (void) setlocale(LC_TIME, ""); +#endif + /* Install the signal handler for SIGINT; terminate after removing the * spool file if necessary */