This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via a00db587f6b90aa2c89112cb2beb90a8ccca226a (commit)
from cc006a01ec04d5e40e67d4d0587048ea34880cb1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=a00db587f6b90aa2c89112cb2beb90a8ccca226a
commit a00db587f6b90aa2c89112cb2beb90a8ccca226a
Author: Norihiro Tanaka <[email protected]>
Date: Sat Sep 3 10:11:56 2016 +0900
dfa: use single-byte algorithm even in non-UTF-8
* src/dfa.c (dfaexec_main): Do it. (This was inadvertently
omitted in a recent patch.)
diff --git a/src/dfa.c b/src/dfa.c
index e009bc6..e7b92ba 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3183,10 +3183,7 @@ dfaexec_main (struct dfa *d, char const *begin, char
*end, bool allow_nl,
s1 = s;
if (!multibyte || d->states[s].mbps.nelem == 0
- || (*p == eol && !allow_nl)
- || (*p == '\n' && !(d->syntax.syntax_bits & RE_DOT_NEWLINE))
- || (*p == '\0' && (d->syntax.syntax_bits & RE_DOT_NOT_NULL))
- || (char *) p >= end)
+ || d->localeinfo.sbctowc[*p] != WEOF || (char *) p >= end)
{
/* If a input character does not match ANYCHAR, do it
like a single-byte character. */
-----------------------------------------------------------------------
Summary of changes:
src/dfa.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
hooks/post-receive
--
grep