bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep-2.6.2 -Ff hangs on files with empty lines


From: Jim Meyering
Subject: Re: grep-2.6.2 -Ff hangs on files with empty lines
Date: Wed, 31 Mar 2010 20:52:00 +0200

Raphael Kimmig wrote:

> I can trigger it with LANG='de_DE.utf8' but it doesn't happen with LC_ALL=C.
>
> The blocking occurs in kwsearch.c (relevant commit:
> 6d952beebdac1d8f31ba20abb12a756a9877e50d ), if I revert that specific
> patch the blocking is gone but now the output is incorrect, so this
> doesn't seem to seems to be source of the error.
>
> $ src/grep -Ff <(printf '\na') <(printf 'a\nb')
> a
>
> $ LC_ALL=C src/grep -Ff <(printf '\na') <(printf 'a\nb')
> a
> b

Thanks.
Paolo fixed it with this:

  
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=5fa8c7c9775577fda035b741cb1db5f9fe7c5d74




reply via email to

[Prev in Thread] Current Thread [Next in Thread]