From 8dcf55a40e13e7288fb3484416592d9cebc4a35f Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 23 Oct 1995 23:36:55 +0000 Subject: [PATCH] Add setlocale LC_CTYPE --- sbin/dmesg/dmesg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index d789f5dcaa3..4b6bdb61fc9 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -53,6 +53,7 @@ static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93"; #include #include #include +#include struct nlist nl[] = { #define X_MSGBUF 0 @@ -77,6 +78,7 @@ main(argc, argv) kvm_t *kd; char buf[5]; + (void) setlocale(LC_CTYPE, ""); memf = nlistf = NULL; while ((ch = getopt(argc, argv, "M:N:")) != EOF) switch(ch) {