delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/12/08:50:12

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=Hy2aAVxKrkLU32Gd+800FhImb1N90MqB0MY+vBuwy9JCeAt6t+9W9
tcUzVs8rA4hNu9tkRjVefvO/UmkZlYLd9G2GftvQITPYzIOMVMqKkr6kOsP8MzCm
bUpNnnQgeIbextERUqovpaO4Ze/jZTw9MPH3rM203Tiuvs3QRACKsc=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=e9idyJitcCAhATBKHGgivp18ICU=; b=cu2nIXy1u7sjOyh+CCsqVqeDaS8M
JzG1dqIY/y+pmOwpDSzN91lbPFxCTbqdOBi6rPjnlZklPTX7qjvd16pSCQdK4FHl
sZVXDczaZW/hXKumHbSt3ESKcr1ipHsOwsoMDcEGqEaei83GkfLINvc24+Mmsyle
rqptbho0Uj6TV3Y=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.4 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED autolearn=ham version=3.3.2
Date: Mon, 12 Aug 2013 14:49:54 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [64-bit] egrep core dumps when it opens binary files
Message-ID: <20130812124954.GF2691@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <52080B35 DOT 5040106 AT jsbc DOT cc>
MIME-Version: 1.0
In-Reply-To: <52080B35.5040106@jsbc.cc>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Virus-Found: No

--R6sEYoIZpp9JErk7
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 11 15:07, Jim Burwell wrote:
> 64 bit egrep gets a segfault and dumps core when it opens binary files:

Confirmed.  This isn't exactly about binary files, but rather grep
stumbles over Cygwin/Newlib's UTF-16 surrogate pair handling here.

To trigger this problem, three circumstances must conincide:

- you have to use a UTF-8 locale like en_US.UTF-8,
- you have to use grep's -i option,
- and you have to hit a file with a UTF-8 sequence which translates to
  a surrogate.

I'm looking into a patch to handle this uncommon situation and try to
send it upstream.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--R6sEYoIZpp9JErk7
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)

iQIcBAEBAgAGBQJSCNnyAAoJEPU2Bp2uRE+gzrUP/AyfV3KZcWqKX8kKwY7jBTXf
PmR0SawfRsDP9k5JZH7ftI5iVA0TaDfEWmvLdxqHtroQxHab5cWOqIEsp5jeyeJ5
JkMKN26hfks9A/cWRH6x9K0JKp/ublDJc7p0EIK7Pyv+zCIDy03aavITbjM43B+2
NeNz75JvSKhb5GBck5QZ9pkQ9W6MmPljhCD0+PgLxZb/1IHF0I0Jvnxmq1TMXH1D
NcXJtyeu9zcg8WrQx+8ws8bm1tRwQe6DbcegVwzcqtbHv2k5AhbUq/ILDwEalNlp
2sKnbc1mQI4SdOHrVFzbnLupeRYqiZLnszvW4ceu1Lby9V3ZQZCWU1N+n3pVV/uV
2lNecj2oVMDhkXdhVNv8f5vTsVcvfHpUp8iV1NeBpotjK7R7PSak+4K37hYRV000
n/ui/sUcrPQyCk0K8AbMCowfYgCe/JjTGdo3tusbgsmN9FvOy7+CI1R+IaZkSEKY
0K/sDZExdA/czzcTp5vLZtSwqRdg9BaME8gxMceDiB4cybhjb/bPrxx4EufduK/7
reWguRxzdv+uvZn4qMNRwEzEOOKx0kZrafpu29hQGsSGeHlATRz5NROFvkJiT0hY
Ni/Hpy+y1vfIjrqHcxkrKB4CU9Xz1aOTM7FvUh/JMMokbxRPdm8/FVL7lSSCEIyX
ao+aleQR3ktn1C6sPM0c
=FLIE
-----END PGP SIGNATURE-----

--R6sEYoIZpp9JErk7--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019