From 3e37ec674d5df115614b1292bad805814cba65a4 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 26 Oct 1995 23:15:14 +0000 Subject: [PATCH] Add setlocale LC_TIME --- usr.sbin/watch/watch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 6aebc999e1f7..620d796189ce 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -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);