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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=ZbsA2nP+es9nCxKbz2F19m8aNjFMlXvyJlkbx59rrkG
	Hxt7DhVf4ofN/fIMzOdcvXtq8aUuW2tLL176mqdACWbKTWUU1b2HZgRMvWpEOwfM
	f/SrffGKyr8cZlThV9KfMvVKuPNlPUH/mUGm/YjxVjWVItgIopIVkN2X1OfMrIPc
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=VENEoAKACx9KM4sw1kyRPgiLDss=; b=hk07WjAWDhX+r7DIm
	82FObb9XeJZIj2+P/pQXEdCQTYDY1IXJJPFq9wXztbZxr9KsBgnmELoCKRXq6dbb
	qk+RNuxC4JRB7lixccBtLtQvLM5PBa7z9DuO+kmABH4iLlSHXvY9rN9G/SbQrpoA
	eqgwJVXvMfBhwrPqlO8SZMbuYQ=
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
X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.2
X-Received: by 10.14.115.69 with SMTP id d45mr4702696eeh.70.1376422749892;        Tue, 13 Aug 2013 12:39:09 -0700 (PDT)
Message-ID: <520A8A05.9080501@gmail.com>
Date: Tue, 13 Aug 2013 21:33:25 +0200
From: Sylvain Pasche <sylvain.pasche@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [64-bit]  egrep core dumps when it opens binary files
References: <52080B35.5040106@jsbc.cc> <20130812124954.GF2691@calimero.vinschen.de> <20130812174122.GH2691@calimero.vinschen.de>
In-Reply-To: <20130812174122.GH2691@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 8/12/2013 7:41 PM, Corinna Vinschen wrote:
>
> I added UTF-16 surrogate handling to the -i option and uploaded a
> grep-2.14-2 package to the 64 bit release.  Please give it a tests.
> If it works for you, I'll send the patch upstream.
>

Hi,

I can confirm it fixes the crash for me. I used this testcase:

echo -n -e '\xf4\x85\x84' > test
grep -i foo test

Which crashed with grep-2.14-1 but not any more with grep-2.14-2.

Sylvain


--
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

