X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 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 AT cygwin DOT com Subject: Re: [64-bit] egrep core dumps when it opens binary files References: <52080B35 DOT 5040106 AT jsbc DOT cc> <20130812124954 DOT GF2691 AT calimero DOT vinschen DOT de> <20130812174122 DOT GH2691 AT calimero DOT vinschen DOT 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