Commit ID c96b0f2c8220f171f8fabd62aa1457ebff4d9277
|Contributor:||Jim Meyering||Files Modified:||2|
|Date:||06-August-2012 at 11:29||Lines Added:||3|
|Repository:||git://git.sv.gnu.org/grep.git master||Lines Removed:||1|
|Commit Comment:||grep -i '^$' in a multi-byte locale could report a false match
* src/dfasearch.c (EGexecute): Do not match the sentinel "newline"
that is appended to each buffer.
This bug may sound like a big deal (it certainly surprised me), but
realize that only the empty-line-matching regular expression '^$'
can trigger it, and then only when you add the unnecessary (and
arguably superfluous) -i, *and* run the command in a multi-byte
locale. Using a multi-byte locale for such a regular expression
is also pointless, and hurts performance.
* NEWS (Bug fixes): Mention it.
Reported by Alexander Katassonov <kata...@gmx.de>
|Language||Code Added||Code Removed||Comments Added||Comment Removed||Blanks Added||Blanks Removed|
|File||Language||Code Added||Code Removed||Comments Added||Comment Removed||Blanks Added||Blanks Removed|
|NEWS||No source code was detected in this file.|