projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
[deliverable/binutils-gdb.git]
/
binutils
/
strings.c
diff --git
a/binutils/strings.c
b/binutils/strings.c
index d72cd1928690badc30473fc2c634a5c908f776cd..5d3aa6d4fa7f8dab802360c8aadd3619ea45413c 100644
(file)
--- a/
binutils/strings.c
+++ b/
binutils/strings.c
@@
-76,7
+76,10
@@
#endif
#endif
#endif
#endif
-#ifdef isascii
+/* Not all printable characters have ASCII codes (depending upon the
+ LOCALE set) but on some older systems it is not safe to test isprint
+ without first testing isascii... */
+#if defined isascii && !defined HAVE_LOCALE_H
#define isgraphic(c) (isascii (c) && (isprint (c) || (c) == '\t'))
#else
#define isgraphic(c) (isprint (c) || (c) == '\t')
#define isgraphic(c) (isascii (c) && (isprint (c) || (c) == '\t'))
#else
#define isgraphic(c) (isprint (c) || (c) == '\t')
@@
-141,7
+144,7
@@
main (argc, argv)
boolean files_given = false;
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
boolean files_given = false;
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
- setlocale (LC_
MESSAGES
, "");
+ setlocale (LC_
ALL
, "");
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
This page took
0.023239 seconds
and
4
git commands to generate.