Re: [64-bit] egrep core dumps when it opens binary files

2013-08-14 Thread Corinna Vinschen
On Aug 13 20:01, Jim Burwell wrote: > > 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. > >

Re: [64-bit] egrep core dumps when it opens binary files

2013-08-13 Thread Jim Burwell
> 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 f

Re: [64-bit] egrep core dumps when it opens binary files

2013-08-13 Thread Sylvain Pasche
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 test

Re: [64-bit] egrep core dumps when it opens binary files

2013-08-12 Thread Corinna Vinschen
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: > > Confirmed. This isn't exactly about binary files, but rather grep > stumbles over Cygwin/Newlib's UTF-16 surrogate pair handling here. >

Re: [64-bit] egrep core dumps when it opens binary files

2013-08-12 Thread Corinna Vinschen
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 con

[64-bit] egrep core dumps when it opens binary files

2013-08-11 Thread Jim Burwell
64 bit egrep gets a segfault and dumps core when it opens binary files: {jimb@T510jimb/pty1}~> egrep -vil blarg * egrep: archive: Is a directory argle b.pyc bahz baktmp bargle baz bbcase Segmentation fault (core dumped) {jimb@T510jimb/pty1}~> ls -1 * |