aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-05-13 11:30:01 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-05-13 11:30:01 +0000
commit9566348d5cac067df8b0ebdb1fa7d496f92015c1 (patch)
tree74b67ffe7b930f83d7bdff5906a53748c8ceffb7
parentcd641c8853c89d8940254156d012446b7116e528 (diff)
downloadsrc-9566348d5cac067df8b0ebdb1fa7d496f92015c1.tar.gz
src-9566348d5cac067df8b0ebdb1fa7d496f92015c1.zip
Localize it
Notes
Notes: svn path=/head/; revision=25777
-rw-r--r--usr.bin/wall/wall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/wall/wall.c b/usr.bin/wall/wall.c
index 4351888c9c4f..12c4387d6055 100644
--- a/usr.bin/wall/wall.c
+++ b/usr.bin/wall/wall.c
@@ -51,6 +51,7 @@ static char sccsid[] = "@(#)wall.c 8.2 (Berkeley) 11/16/93";
#include <sys/time.h>
#include <sys/uio.h>
+#include <locale.h>
#include <paths.h>
#include <pwd.h>
#include <stdio.h>
@@ -81,6 +82,8 @@ main(argc, argv)
char *p, *ttymsg();
char line[sizeof(utmp.ut_line) + 1];
+ (void)setlocale(LC_CTYPE, "");
+
while ((ch = getopt(argc, argv, "n")) != -1)
switch (ch) {
case 'n':