diff options
author | ache <ache@FreeBSD.org> | 1996-08-12 04:03:50 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-08-12 04:03:50 +0000 |
commit | e37075011a9565ba98e9e8ad503badbf970eddf3 (patch) | |
tree | fe97691b8070bd7797e4a206eecafd6bd06ba338 /lib/libc/gen/fnmatch.c | |
parent | 563eb698353b5d74ca310df0ed227b2473b600ec (diff) | |
download | FreeBSD-src-e37075011a9565ba98e9e8ad503badbf970eddf3.zip FreeBSD-src-e37075011a9565ba98e9e8ad503badbf970eddf3.tar.gz |
Use collate for alpha character ranges
Diffstat (limited to 'lib/libc/gen/fnmatch.c')
-rw-r--r-- | lib/libc/gen/fnmatch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gen/fnmatch.c b/lib/libc/gen/fnmatch.c index 96cd341..3005184 100644 --- a/lib/libc/gen/fnmatch.c +++ b/lib/libc/gen/fnmatch.c @@ -45,6 +45,7 @@ static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; #include <fnmatch.h> #include <string.h> +#include "collate.h" #define EOS '\0' @@ -162,7 +163,9 @@ rangematch(pattern, test, flags) c2 = *pattern++; if (c2 == EOS) return (NULL); - if (c <= test && test <= c2) + if ( __collcmp(c, test) <= 0 + && __collcmp(test, c2) <= 0 + ) ok = 1; } else if (c == test) ok = 1; |