Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2008 22:55:06 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 143138 for review
Message-ID:  <200806082255.m58Mt6UP009670@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143138

Change 143138 by gabor@gabor_server on 2008/06/08 22:55:06

	- Improve the distinction of text and binary files

Affected files ...

.. //depot/projects/soc2008/gabor_textproc/grep/binary.c#4 edit

Differences ...

==== //depot/projects/soc2008/gabor_textproc/grep/binary.c#4 (text+ko) ====

@@ -41,7 +41,7 @@
 
 #include "grep.h"
 
-#define	isbinary(ch)	(!isprint((ch)) && !isspace((ch)) && (ch) != '\b')
+#define	isbinary(ch)	(!isspace((ch)) && iscntrl((ch)))
 
 int
 bin_file(FILE *f)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806082255.m58Mt6UP009670>