aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/kdump/kdump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index d5b1654d3d75..b290d4db4091 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -56,6 +56,7 @@ extern int errno;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#include "ktrace.h"
int timestamp, decimal, fancy = 1, tail, maxdata;
@@ -74,6 +75,8 @@ main(argc, argv)
register void *m;
int trpoints = ALL_POINTS;
+ (void) setlocale(LC_CTYPE, "");
+
while ((ch = getopt(argc,argv,"f:dlm:nRTt:")) != EOF)
switch((char)ch) {
case 'f':