bug-grep
[Top][All Lists]
Advanced

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

[bug-grep] [bugs #12210] EGexecute() fails to find matches on (exact &&


From: anonymous
Subject: [bug-grep] [bugs #12210] EGexecute() fails to find matches on (exact && match_icase)
Date: Fri, 4 Mar 2005 14:50:16 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10

Follow-up Comment #2, bugs #12210 (project grep):

Using CVS.
Sorry for the confusion that may arise, the bug is not visible because it's
in the API that search.c exposes to grep.c .

Since EGexecute() is not able to find matches when the passed 'exact'
parameter is set and match_icase is set (and buffer and pattern differ in
case), an ugly workaround exists in grep.c, where the line is converted to
lower case on the fly before calling EGexecute. This conversion however
causes other problems with --only-matching and is not the right place to
solve it.

The problem should be solved in search.c.
I am investigating patch #1940 that might hold part of the solution.

Additional contribution to understanding the issue would be welcome.


    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12210>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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