summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch
diff options
context:
space:
mode:
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