Follow-up Comment #1, bug #17274 (project grep):
Thanks for the report. This error appears to be fixed in CVS:
$ echo -e 'blah blubb\nb' | grep -Fw b
b
$ echo -e 'DESKTOP\nCDRW DUALXP SATA DE' | grep -Fw DE
CDRW DUALXP SATA DE
$ grep --version | head -1
GNU grep 2.5.1-cvs
It was fixed probably by the commit on April 27 last year, mainly as a
rection to patch #1834 . Apparenlty not all distros apply the same patches
to their greps. This is the essential diff:
--- src/search.c 9 Mar 2005 13:11:28 -0000 1.34
+++ src/search.c 27 Apr 2005 18:30:29 -0000 1.35
@@ -599,17 +599,7 @@
{
offset = kwsexec (kwset, beg, --len, &kwsmatch);
if (offset == (size_t) -1)
- {
-#ifdef MBS_SUPPORT
- if (MB_CUR_MAX > 1)
- {
- if (match_icase)
- free ((char*)buf);
- free(mb_properties);
- }
-#endif /* MBS_SUPPORT */
- return offset;
- }
+ break;
try = beg + offset;
len = kwsmatch.size[0];
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=17274>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/