summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-26 23:15:14 +0000
committerache <ache@FreeBSD.org>1995-10-26 23:15:14 +0000
commita0d781c95c8191578e3fdc3fde1773b41a62a375 (patch)
tree0aaddba58abcf882e798c29ad908dfc5c64897b6 /usr.sbin/watch
parent91d01e8e8411ebeb07dc06da833bee0c5a75d61c (diff)
downloadFreeBSD-src-a0d781c95c8191578e3fdc3fde1773b41a62a375.zip
FreeBSD-src-a0d781c95c8191578e3fdc3fde1773b41a62a375.tar.gz
Add setlocale LC_TIME
Diffstat (limited to 'usr.sbin/watch')
-rw-r--r--usr.sbin/watch/watch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index 6aebc99..620d7961 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -20,6 +20,7 @@
#include <string.h>
#include <termcap.h>
#include <sgtty.h>
+#include <locale.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -263,6 +264,8 @@ main(ac, av)
char ch, *buf, chb[READB_LEN];
fd_set fd_s;
+ (void) setlocale(LC_TIME, "");
+
if (getuid() != 0)
fatal(NULL);
OpenPOWER on IntegriCloud