summaryrefslogtreecommitdiffstats
path: root/usr.bin/at
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-24 05:09:54 +0000
committerache <ache@FreeBSD.org>1995-10-24 05:09:54 +0000
commit77a5efddf4b5d7df8a4c51e46f663d22d2d294a2 (patch)
tree0d5f2098ba1fa9be5849ad05d7a32509c05907eb /usr.bin/at
parentafeabfa14344294df80b2f4e5f130aee047d13ed (diff)
downloadFreeBSD-src-77a5efddf4b5d7df8a4c51e46f663d22d2d294a2.zip
FreeBSD-src-77a5efddf4b5d7df8a4c51e46f663d22d2d294a2.tar.gz
Add setlocale LC_TIME
Diffstat (limited to 'usr.bin/at')
-rw-r--r--usr.bin/at/at.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index 6665590..80158bb 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -47,6 +47,8 @@
#include <unistd.h>
#ifndef __FreeBSD__
#include <getopt.h>
+#else
+#include <locale.h>
#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
*/
OpenPOWER on IntegriCloud