X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=jW
	g+A2GkfszOSZfim9LpLD6LhNCJBOvLT7k1G8DpIUX4GKWhJFlndRBwRBulAy5/uT
	G2+dGnOeowyPgnqBdvt63arjI+pWCVWxalCHQn4vU1Q+juX5fY1PqhwmRPQ0WGdN
	UHMjXGh0Oa8wYz1q+YsqtBoiiZi6zFRNByKbrjl/8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=5SzlmqNb
	FK6B9n+ITRtYMzfQlrc=; b=xJ4FQNHlmgPwRF8ZGh04mkTDExn5HGax+/B/dlI1
	p0biuRNshd69wgPlMxPGZN16pQl31kZbpF9IxTazKXWYxLHrBzfLvTew3kCxHK7H
	VAh3Qmo/JH42Up22h6P0iwTdI4gnBCp+NeI4oB0iWNalJyaR28MFjl6EANDTfpjJ
	4Jk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
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)
In-Reply-To: <6138-1437098652-808922@sneakemail.com>
References: <CAAXzdLWo4nvaJBMOBYsOYeCdrgw_O=8CM_H_kwfxnU=AqnuOjA@mail.gmail.com>	<6138-1437098652-808922@sneakemail.com>
Date: Thu, 16 Jul 2015 22:44:48 -0500
Message-ID: <CAAXzdLXOG5MAQPDYA9ofqWo47Bf-f2C0mPkhD+Lnd+n8SQakbg@mail.gmail.com>
Subject: Re: --line-regexp option with null data
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

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

