dfa: make [0-9] faster in non-C locales
commit6afba02d7869d39ed7f61981045ddbdcb2814101
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Mar 2017 02:05:17 +0000 (21 19:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Mar 2017 02:05:48 +0000 (21 19:05 -0700)
tree9267e7cb0077b5cf3286342d9b7bd9d550a2401c
parent7b8cbb95331363318e67be179ebdef95d3cd27b2
dfa: make [0-9] faster in non-C locales

Problem reported by John P. Linderman (Bug#26193).
* lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
If both ends of the range are ASCII digits, do not worry about
multi-character collating sequences and the like.  Be consistent
about using isalpha as a precondition for setbit_case_fold_c.
ChangeLog
lib/dfa.c