GNU bug report logs - #23763
Bug report: Grep stops, if a text file contains a null character after 32768 bytes

Previous Next

Package: grep;

Reported by: Bjoern Voigt <bjoernv <at> arcor.de>

Date: Mon, 13 Jun 2016 19:55:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #30 received at 23763 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bjoern Voigt <bjoernv <at> arcor.de>, 23763 <at> debbugs.gnu.org
Subject: Re: bug#23763: Bug report: Grep stops, if a text file contains a null
 character after 32768 bytes
Date: Tue, 14 Jun 2016 22:30:13 -0700
[Message part 1 (text/plain, inline)]
Bjoern Voigt wrote:
> --binary-files=TYPE
>    If the first few bytes of a file indicate that the file
>    contains binary data, assume that the file is of type TYPE.

That's another place where the man page is obsolete and wrong. (In GNU projects, 
man pages are often poorly maintained as they are not the primary form of 
documentation; one is supposed to read the manual instead.) I installed the 
attached patch to fix that.

> My MySQL mysqldump problem can be solved with --text or
> --binary-files=text. So I do not search a quick solution anymore.

Works for me.

[0001-doc-propagate-more-changes-from-grep.texi.txt (text/plain, attachment)]

This bug report was last modified 9 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.