diff options
Diffstat (limited to 'lib/libc/string/strcoll.c')
| -rw-r--r-- | lib/libc/string/strcoll.c | 22 | 
1 files changed, 3 insertions, 19 deletions
| diff --git a/lib/libc/string/strcoll.c b/lib/libc/string/strcoll.c index 405a78bf5a21..b9169136c3f2 100644 --- a/lib/libc/string/strcoll.c +++ b/lib/libc/string/strcoll.c @@ -24,12 +24,11 @@   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF   * SUCH DAMAGE.   * - * $Id: strcoll.c,v 1.5 1996/06/09 14:56:06 ache Exp $ + * $Id: strcoll.c,v 1.6 1996/07/12 18:55:38 jkh Exp $   */  #include <stdlib.h>  #include <string.h> -#include <ctype.h>  #include "collate.h"  int @@ -39,23 +38,8 @@ strcoll(s, s2)  	int len, len2, prim, prim2, sec, sec2, ret, ret2;  	char *tt, *t, *tt2, *t2; -	if (__collate_load_error) { -		register const u_char -				*us1 = (const u_char *)s, -				*us2 = (const u_char *)s2; - -		while (tolower(*us1) == tolower(*us2)) { -			if (*us1 == '\0') -				return (0); -			if (isupper(*us1) && islower(*us2)) -				return (-1); -			else if (islower(*us1) && isupper(*us2)) -				return (1); -			us1++; -			us2++; -		} -		return (tolower(*us1) - tolower(*us2)); -	} +	if (__collate_load_error) +		return strcmp(s, s2);  	len = len2 = 1;  	ret = ret2 = 0; | 
