From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60866 invoked by alias); 17 Jul 2015 03:44:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 60858 invoked by uid 89); 17 Jul 2015 03:44:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f180.google.com Received: from mail-ig0-f180.google.com (HELO mail-ig0-f180.google.com) (209.85.213.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 17 Jul 2015 03:44:50 +0000 Received: by iggp10 with SMTP id p10so27355576igg.0 for ; Thu, 16 Jul 2015 20:44:49 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.129.230 with SMTP id l99mr17484637ioi.32.1437104688263; Thu, 16 Jul 2015 20:44:48 -0700 (PDT) Received: by 10.36.13.213 with HTTP; Thu, 16 Jul 2015 20:44:48 -0700 (PDT) In-Reply-To: <6138-1437098652-808922@sneakemail.com> References: <6138-1437098652-808922@sneakemail.com> Date: Fri, 17 Jul 2015 03:44:00 -0000 Message-ID: Subject: Re: --line-regexp option with null data From: Steven Penny To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00268.txt.bz2 On Thu, Jul 16, 2015 at 9:04 PM, John Hein wrote: > cygwin grep is detecting the input as binary which seems to be > overriding the 'match the whole line' behavior of --line-regexp. Get > rid of --quiet to see that. It appears to be intended behavior starting with version 2.21: > If a file contains data improperly encoded for the current locale, > and this is discovered before any of the file's contents are output, > grep now treats the file as binary. http://savannah.gnu.org/forum/forum.php?forum_id=8152 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple