diff options
author | ache <ache@FreeBSD.org> | 1997-04-04 19:16:08 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-04-04 19:16:08 +0000 |
commit | cb04a31ca3401f697f978db08f7ac2a21867ff1c (patch) | |
tree | e25495aaf5432b456a48fa0fb66baa89b279232a /lib/libc/gen/glob.c | |
parent | 1fc112af6ff325273cbba10e39b5c659136fa3c4 (diff) | |
download | FreeBSD-src-cb04a31ca3401f697f978db08f7ac2a21867ff1c.zip FreeBSD-src-cb04a31ca3401f697f978db08f7ac2a21867ff1c.tar.gz |
Speedup in case locale not used
Diffstat (limited to 'lib/libc/gen/glob.c')
-rw-r--r-- | lib/libc/gen/glob.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c index 5355f69..f58fd8d 100644 --- a/lib/libc/gen/glob.c +++ b/lib/libc/gen/glob.c @@ -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; |