aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-31 22:52:23 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-31 22:52:23 +0300
commitc2efba1b80559c475a74622d16aa7361fa566251 (patch)
treed4bb02d4240e5e59670e45bdaff0876131d6545d /dfa.c
parent2c126c4972966714e2c3af8826c4161c30570041 (diff)
downloadegawk-c2efba1b80559c475a74622d16aa7361fa566251.tar.gz
egawk-c2efba1b80559c475a74622d16aa7361fa566251.tar.bz2
egawk-c2efba1b80559c475a74622d16aa7361fa566251.zip
Rationalize range expansion in regexps.
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dfa.c b/dfa.c
index 7dbc4e9b..02f3291d 100644
--- a/dfa.c
+++ b/dfa.c
@@ -993,7 +993,8 @@ parse_bracket_exp (void)
c1 = tolower (c1);
c2 = tolower (c2);
}
- if (!hard_LC_COLLATE)
+ if (!hard_LC_COLLATE
+ || (syntax_bits & RE_RANGES_IGNORE_LOCALES))
for (c = c1; c <= c2; c++)
setbit_case_fold (c, ccl);
else