diff options
author | ache <ache@FreeBSD.org> | 1995-04-16 22:43:45 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-04-16 22:43:45 +0000 |
commit | b07c35fa4708c2f138343c714cd8a9c22f7007f3 (patch) | |
tree | 8b62b910ed2a760c7f60b2b297c6e15f296fbabf | |
parent | 5065e4a36671dae647143d597f1fe901e07e485d (diff) | |
download | FreeBSD-src-b07c35fa4708c2f138343c714cd8a9c22f7007f3.zip FreeBSD-src-b07c35fa4708c2f138343c714cd8a9c22f7007f3.tar.gz |
If locale not available, fallback to strcasecmp, not to strcmp
-rw-r--r-- | lib/libc/string/strcoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strcoll.c b/lib/libc/string/strcoll.c index 544f9b9..915e649 100644 --- a/lib/libc/string/strcoll.c +++ b/lib/libc/string/strcoll.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: strcoll.c,v 1.2 1995/02/16 17:01:09 ache Exp $ + * $Id: strcoll.c,v 1.3 1995/02/18 01:38:58 ache Exp $ */ #include <stdlib.h> @@ -39,7 +39,7 @@ strcoll(s, s2) char *tt, *t, *tt2, *t2; if (__collate_load_error) - return strcmp(s, s2); + return strcasecmp(s, s2); len = len2 = 1; ret = ret2 = 0; |