Speedup in case locale not used

This commit is contained in:
Andrey A. Chernov 1997-04-04 19:16:08 +00:00
parent 6a575f6e24
commit 21d58869ce

View File

@ -710,7 +710,9 @@ match(name, pat, patend)
++pat;
while (((c = *pat++) & M_MASK) != M_END)
if ((*pat & M_MASK) == M_RNG) {
if ( __collate_range_cmp(CHAR(c), CHAR(k)) <= 0
if (__collate_load_error ?
CHAR(c) <= CHAR(k) && CHAR(k) <= CHAR(pat[1]) :
__collate_range_cmp(CHAR(c), CHAR(k)) <= 0
&& __collate_range_cmp(CHAR(k), CHAR(pat[1])) <= 0
)
ok = 1;