summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-26 22:16:45 +0000
committerache <ache@FreeBSD.org>1995-10-26 22:16:45 +0000
commitcdd7bd00d11a66781d1e11411246a8e541d472e2 (patch)
tree248deb634fc498f61471f4e7b5211d5e662c1448 /usr.bin/kdump
parentc59afb83a5d078bc86b1776e6adf5fed2353dad0 (diff)
downloadFreeBSD-src-cdd7bd00d11a66781d1e11411246a8e541d472e2.zip
FreeBSD-src-cdd7bd00d11a66781d1e11411246a8e541d472e2.tar.gz
Add setlocale LC_CTYPE
Diffstat (limited to 'usr.bin/kdump')
-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 d5b1654..b290d4d 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':
OpenPOWER on IntegriCloud