diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-06-22 16:48:41 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-06-22 16:48:41 +0000 |
commit | 1e27de559d679b242aaa482c232f2be295d2bf0e (patch) | |
tree | 53dd5c30922f8a2abdacd5bf4a7a03f390e9e87f /pw/pw.c | |
parent | 972568102323c8d0c9c190a7b280ae66c8e8b924 (diff) | |
download | pw-darwin-1e27de559d679b242aaa482c232f2be295d2bf0e.tar.gz pw-darwin-1e27de559d679b242aaa482c232f2be295d2bf0e.tar.zst pw-darwin-1e27de559d679b242aaa482c232f2be295d2bf0e.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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |