www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/12/13:41:56

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=e4eYeEMufSQD+gR7XZx2lmBdXthVI1Ch1BL7wvu3Szf1hi6f1MIIw
0wUiMaEQTXwZVMmCu39VyON4LFyiwpo/I7X13VSU7KIhW22gDfIsnPB4Be4eXzGG
XMo7YBLpVr/1umYbCPQQjA5mrxciielQ6kqcbJh9K7pMCVGng9v7Rk=
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=eAVrFw8JbXrUBfbNyv7lieJNhX4=; b=G5pCqmxWT7W5+3RhXiUjpesYG349
erpZEqr0KmuTopqau05T2VBFNZMHyXSMXs6BwcnQTBdOTPgNsx/aa+7fGrS59ZGw
eS8CJvO0TtzV9g16GTQztqoUhBIotj5pi+PyGf4krSbgMkDl8CvX9QGPYLcBP6vo
1EBairmNVz5GFTM=
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 19:41:22 +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: <20130812174122.GH2691@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> <20130812124954 DOT GF2691 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20130812124954.GF2691@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Virus-Found: No

--RDS4xtyBfx+7DiaI
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 12 14:49, Corinna Vinschen wrote:
> On Aug 11 15:07, Jim Burwell wrote:
> > 64 bit egrep gets a segfault and dumps core when it opens binary files:
>=20
> Confirmed.  This isn't exactly about binary files, but rather grep
> stumbles over Cygwin/Newlib's UTF-16 surrogate pair handling here.
>=20
> To trigger this problem, three circumstances must conincide:
>=20
> - 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.
>=20
> I'm looking into a patch to handle this uncommon situation and try to
> send it upstream.

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.


Thanks,
Corinna

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

--RDS4xtyBfx+7DiaI
Content-Type: application/pgp-signature

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

iQIcBAEBAgAGBQJSCR5CAAoJEPU2Bp2uRE+gpdcP/0QARIsWkiplyi5y23bm0w1W
OV1085RSfrjXxt6nriMTxCDQJIrlgQrJXUQorDMfXaZ7KkrVLN59Br9GTb/++xIs
45b7Acj1Yc+ICArX7gQZSCFZw5DHCyFMGZJQlmVABoxYa3enVmP0+bpYXo6Gc2rj
dXVXRau7QBKfC3Oj41z99qpdzWNolOS3ty12h2Yvi0HgTIUyhE228ZIGHRU6P+PT
3kCOoMisYuW2D6lli6f6gDSFGLRLkuv9PkC3kFSF/39F9Ck/XCKPqFgvEalW0hFu
nNDf8t2iF9xs2twJJusUYDnv3DUvaUqzbNQorIihbaxn01TWvh1ELbQmjKLuXsoA
2Nop951Ac+8hJ9Y5PmMKBr2wVUFYOUjejcJGu1cB6MQBwjhiE25t3PuogjMOULq1
W4yv89oD7XGSjNMmVFjjoTVV0JiLLt/H813ZYVTMgU2Yd4IIlk+pwUlToRFF8IFQ
ir6Hv0blgn7G9ZMpn+TRe5rMQC4fgC5SlnYTx5cz1tDZ0xgbwqeDoCNKSduuVNN+
WX3vNepeFXaq0Vek6mERKPJpdt+aHBP7PTuxeuT38bD2VlI28DswOy1ZJBtyKDb1
RN+akOyUhvir5D776vgfSCFQlsH/or7EKZpxzMcHXnVeFPZwNAiVbwYYEjrDR1yI
if/3H+Kxjf561d6BjceO
=LoVP
-----END PGP SIGNATURE-----

--RDS4xtyBfx+7DiaI--

- Raw text -


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