summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/finger/finger.c2
-rw-r--r--usr.bin/w/w.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c
index 5b5daa50..578d164 100644
--- a/usr.bin/finger/finger.c
+++ b/usr.bin/finger/finger.c
@@ -135,7 +135,7 @@ main(argc, argv)
int ch, envargc, argcnt;
char *envargv[3];
- (void) setlocale(LC_TIME|LC_CTYPE, "");
+ (void) setlocale(LC_ALL, "");
/* remove this line to get remote host */
oflag = 1; /* default to old "office" behavior */
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 1460e26..b75f7f4 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -131,7 +131,7 @@ main(argc, argv)
char *memf, *nlistf, *p, *vis_args, *x;
char buf[MAXHOSTNAMELEN], errbuf[256];
- (void) setlocale(LC_TIME|LC_CTYPE, "");
+ (void) setlocale(LC_ALL, "");
/* Are we w(1) or uptime(1)? */
p = __progname;
OpenPOWER on IntegriCloud