summaryrefslogtreecommitdiffstats
path: root/pw/pw.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2000-06-22 16:48:41 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2000-06-22 16:48:41 +0000
commit5bd653754af8d012e11e518278bbde0971626082 (patch)
tree4fe2e7ddea9c1b702a12ce61f4ced9dd3b561c7b /pw/pw.c
parent116e8ae5bdfbd5c8fac1dd39b8295975acdc58a8 (diff)
downloadpw-darwin-5bd653754af8d012e11e518278bbde0971626082.tar.gz
pw-darwin-5bd653754af8d012e11e518278bbde0971626082.tar.zst
pw-darwin-5bd653754af8d012e11e518278bbde0971626082.zip
Localize time/date.
Use ISO 8601 date in logs. Fix wrong argument type in ctype functions.
Diffstat (limited to 'pw/pw.c')
-rw-r--r--pw/pw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pw/pw.c b/pw/pw.c
index 6c070ac..5c77783 100644
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -31,6 +31,7 @@ static const char rcsid[] =
#include <err.h>
#include <fcntl.h>
+#include <locale.h>
#include <paths.h>
#include <sys/wait.h>
#include "pw.h"
@@ -131,6 +132,8 @@ main(int argc, char *argv[])
umask(0); /* We wish to handle this manually */
LIST_INIT(&arglist);
+ (void)setlocale(LC_TIME, "");
+
/*
* Break off the first couple of words to determine what exactly
* we're being asked to do