PERFORCE change 143138 for review

Gabor Kovesdan gabor at FreeBSD.org
Sun Jun 8 22:55:07 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143138

Change 143138 by gabor at 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)


More information about the p4-projects mailing list