summaryrefslogtreecommitdiff
path: root/binutils/sysdump.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-09-19 05:33:36 +0000
committerH.J. Lu <hjl@lucon.org>2001-09-19 05:33:36 +0000
commit75e56203c5a58ad68a2015e0c7da2590093a3ec0 (patch)
treee91126f6df5579aaae921d5b82dc556b8c174966 /binutils/sysdump.c
parent196eb9fb0228e90f1f5c43a65372657f443580da (diff)
downloadbinutils-redhat-75e56203c5a58ad68a2015e0c7da2590093a3ec0.tar.gz
Locale changes from Bruno Haible <haible@clisp.cons.org>.
Diffstat (limited to 'binutils/sysdump.c')
-rw-r--r--binutils/sysdump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/binutils/sysdump.c b/binutils/sysdump.c
index 28fafeabf8..874b9e5bed 100644
--- a/binutils/sysdump.c
+++ b/binutils/sysdump.c
@@ -26,9 +26,9 @@
#include "bfd.h"
#include "bucomm.h"
+#include "safe-ctype.h"
#include <stdio.h>
-#include <ctype.h>
#include <libiberty.h>
#include <getopt.h>
#include "sysroff.h"
@@ -260,7 +260,8 @@ pbarray (y)
printf ("%d (", y->len);
for (x = 0; x < y->len; x++)
{
- printf ("(%02x %c)", y->data[x], isprint (y->data[x]) ? y->data[x] : '.');
+ printf ("(%02x %c)", y->data[x],
+ ISPRINT (y->data[x]) ? y->data[x] : '.');
}
printf (")\n");
}
@@ -760,6 +761,9 @@ main (ac, av)
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
#endif
+#if defined (HAVE_SETLOCALE)
+ setlocale (LC_CTYPE, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);