From 4931b67d7efa50576cea9f3045cc9d70ea779f2e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 29 Nov 2016 19:49:02 +0200 Subject: Use RE_ICASE instead of DFA_CASE_FOLD in dfa.c and re.c. --- re.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 're.c') diff --git a/re.c b/re.c index dcb06671..6c1e360c 100644 --- a/re.c +++ b/re.c @@ -203,7 +203,6 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool dfa, bool canfatal) } dfa_syn = syn; - /* FIXME: dfa doesn't pay attention RE_ICASE */ if (ignorecase) dfa_syn |= RE_ICASE; @@ -223,8 +222,7 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool dfa, bool canfatal) rp->pat.newline_anchor = false; /* don't get \n in middle of string */ if (dfa && ! no_dfa) { rp->dfareg = dfaalloc(); - dfasyntax(rp->dfareg, & localeinfo, dfa_syn, - (ignorecase ? DFA_CASE_FOLD : 0) | DFA_ANCHOR); + dfasyntax(rp->dfareg, & localeinfo, dfa_syn, DFA_ANCHOR); dfacomp(buf, len, rp->dfareg, true); } else rp->dfareg = NULL; -- cgit v1.2.3