summaryrefslogtreecommitdiffstats
path: root/usr.bin/wall
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-05-13 11:30:01 +0000
committerache <ache@FreeBSD.org>1997-05-13 11:30:01 +0000
commit62e3660838a29aa3dbc08deff5e8560a4b2d4f66 (patch)
tree9bcfdd0ce39628de45aaafeb49bbbe1c636d5704 /usr.bin/wall
parente71667c20d7fe83bdfad8a8b821865ac028e99ee (diff)
downloadFreeBSD-src-62e3660838a29aa3dbc08deff5e8560a4b2d4f66.zip
FreeBSD-src-62e3660838a29aa3dbc08deff5e8560a4b2d4f66.tar.gz
Localize it
Diffstat (limited to 'usr.bin/wall')
-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 4351888..12c4387 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':
OpenPOWER on IntegriCloud