summaryrefslogtreecommitdiffstats
path: root/sbin/dmesg/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dmesg/dmesg.c')
-rw-r--r--sbin/dmesg/dmesg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c
index d789f5d..4b6bdb6 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 <time.h>
#include <unistd.h>
#include <vis.h>
+#include <locale.h>
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) {
OpenPOWER on IntegriCloud