forked from Imagelibrary/binutils-gdb
Support printable characters outside of the ASCII range
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2001-04-27 Michal Svec <rebel@atrey.karlin.mff.cuni.cz>
|
||||||
|
|
||||||
|
* strings.c (isgraphic): Do not use isascii() unless it is needed
|
||||||
|
for isprint() to work.
|
||||||
|
(main): Set the locale domain to LC_ALL not just LC_MESSAGES.
|
||||||
|
|
||||||
2001-04-27 Johan Rydberg <jrydberg@opencores.org>
|
2001-04-27 Johan Rydberg <jrydberg@opencores.org>
|
||||||
|
|
||||||
* NEWS: Announce support for OpenRISC.
|
* NEWS: Announce support for OpenRISC.
|
||||||
|
|||||||
@@ -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'))
|
#define isgraphic(c) (isascii (c) && (isprint (c) || (c) == '\t'))
|
||||||
#else
|
#else
|
||||||
#define isgraphic(c) (isprint (c) || (c) == '\t')
|
#define isgraphic(c) (isprint (c) || (c) == '\t')
|
||||||
@@ -141,7 +144,7 @@ main (argc, argv)
|
|||||||
boolean files_given = false;
|
boolean files_given = false;
|
||||||
|
|
||||||
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
|
||||||
setlocale (LC_MESSAGES, "");
|
setlocale (LC_ALL, "");
|
||||||
#endif
|
#endif
|
||||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
textdomain (PACKAGE);
|
textdomain (PACKAGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user