diff options
author | ache <ache@FreeBSD.org> | 2000-06-22 16:48:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2000-06-22 16:48:41 +0000 |
commit | 77729ceb43ab5503e7ad253493cf45995d695c40 (patch) | |
tree | 86fb6e644a653ca66c18488f0b08149465443594 /usr.sbin/pw/pw.c | |
parent | 23559508fb225c1fb2657d8bf0a65a8144779538 (diff) | |
download | FreeBSD-src-77729ceb43ab5503e7ad253493cf45995d695c40.zip FreeBSD-src-77729ceb43ab5503e7ad253493cf45995d695c40.tar.gz |
Localize time/date.
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index 6c070ac..5c77783 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/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 |