mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add setlocale LC_TIME
This commit is contained in:
parent
dc675fc2e7
commit
238d3ffda9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11760
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue