|
From: | GNU bug Tracking System |
Subject: | bug#31280: closed (zgrep foo binaryfilepath says "Binary file (standard input) matches") |
Date: | Thu, 07 Apr 2022 19:33:02 +0000 |
Your message dated Thu, 7 Apr 2022 12:32:22 -0700 with message-id <5745e4bd-547e-3de7-a704-40cbf689f7c4@cs.ucla.edu> and subject line Re: zgrep foo binaryfilepath says "Binary file (standard input) matches" has caused the debbugs.gnu.org bug report #31280, regarding zgrep foo binaryfilepath says "Binary file (standard input) matches" to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 31280: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31280 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: zgrep foo binaryfilepath says "Binary file (standard input) matches" Date: Thu, 26 Apr 2018 21:33:54 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0 Hello,There is a bug in zgrep (gzip) 1.6 where the output from zgrep incorrectly says "(standard input") instead the file path name given on the command line.This happens if the input data is not actually compressed, but is binary data.STEPS TO REPRODUCE:perl -wE 'print "foobar",("\x0" x 1000)' > /tmp/testfile.dat # make a binary filezgrep foobar /tmp/testfile.dat RESULTS: Binary file (standard input) matches EXPECTED RESULTS: Binary file /tmp/testfile.dat matches
--- End Message ---
--- Begin Message ---Subject: Re: zgrep foo binaryfilepath says "Binary file (standard input) matches" Date: Thu, 7 Apr 2022 12:32:22 -0700 Thanks for your bug report. This bug should be fixed in gzip 1.12, released today. The bug fix is here: User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 https://git.savannah.gnu.org/cgit/gzip.git/commit/?id=9d3248751178939713a39115cf68ec8a11506cc9
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |