This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: patch to accept \t as a character by `strings'
- To: obrien at FreeBSD dot org
- Subject: Re: patch to accept \t as a character by `strings'
- From: Andreas Schwab <schwab at suse dot de>
- Date: Thu, 11 May 2000 19:05:43 +0200
- Cc: binutils at sourceware dot cygnus dot com
- References: <20000418183553.C7451@dragon.nuxi.com>
"David O'Brien" <obrien@FreeBSD.org> writes:
|> Below is a patch so that `strings' output matches that of other systems.
|> BSD since 1986/11/24 have defined <tab> to be a printable character (bug
|> report 4.3BSD/ucb/9). HP-UX (since at least 10.20), Irix (since at least
|> 5.3) also interprets <tab> this way.
|>
|>
|> 2000-04-18 David O'Brien <obrien@FreeBSD.org>
|>
|> * strings.c (isgraphic): Interpret <TAB> as a printable character,
|> analogous to <SPACE>.
|>
|>
|> Index: strings.c
|> ===================================================================
|> RCS file: /cvs/src/src/binutils/strings.c,v
|> retrieving revision 1.5
|> diff -u -r1.5 strings.c
|> --- strings.c 2000/04/07 04:34:50 1.5
|> +++ strings.c 2000/04/19 01:31:10
|> @@ -60,9 +60,9 @@
|> #include "libiberty.h"
|>
|> #ifdef isascii
|> -#define isgraphic(c) (isascii (c) && isprint (c))
|> +#define isgraphic(c) (isascii (c) && (isprint (c) || isblank (c)))
isblank is not part of ISO C.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg