On Mon, Sep 03, 2007 at 10:16:52AM -0400, Justin Pryzby wrote:
>On Mon, Sep 03, 2007 at 11:11:41PM +1000, Aníbal Monsalve Salazar wrote:
>>On Mon, Aug 27, 2007 at 08:51:23PM +0200, Loïc Minier wrote:
>>>Package: grep
>>>Version: 2.5.3~dfsg-1
>>>Severity: normal
>>>File: /bin/grep
>>>
>>>       Hi,
>>>
>>>% echo -foo | grep -vw foo
>>>zsh: done                echo -foo | 
>>>zsh: segmentation fault  grep --color=auto -vw foo
>
>>>Seems to happen in fr_FR.UTF-8 and en_US.UTF-8, but not in C locale.
>
>>I didn't get a segfault when I run either 'echo -foo | grep --color=auto -vw 
>>foo'
>The --color wasn't necessary.   Loïc apparently has grep aliased or
>GREP_OPTIONS set?
>
>>$ locale
>>LANG=en_AU
>What about LANG=en_AU.UTF8?
>
>$ echo -foo |LC_ALL=en_AU ./tmp/grep.unstable -vw foo
>$ echo -foo |LC_ALL=en_AU.UTF8 ./tmp/grep.unstable -vw
>foo
>Segmentation fault
>
>I just re-confirmed the reported misbehavior of the rest of these grep
>bugs too.
>
>Justin

Hello Justin,

I can reproduce it here. I'll try to fix it. If someone has a patch
please let us know.

$ dpkg -l grep | grep ^ii
ii  grep           2.5.1.ds2-6    GNU grep, egrep and fgrep

[EMAIL PROTECTED]:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -vw foo

[EMAIL PROTECTED]:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -w foo
-foo

[EMAIL PROTECTED]:~$ dpkg -l grep | grep ^ii
ii  grep           2.5.3~dfsg-1   GNU grep, egrep and fgrep

[EMAIL PROTECTED]:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -vw foo
Segmentation fault

[EMAIL PROTECTED]:~$ echo -foo |LC_ALL=en_AU.UTF8 grep -w foo

[EMAIL PROTECTED]:~$ echo -e '-foo\n-foo' |LC_ALL=en_AU.UTF8 grep -w foo
foofoo

Aníbal Monsalve Salazar
-- 
http://v7w.com/anibal

Attachment: signature.asc
Description: Digital signature

Reply via email to