toupper -> tolower to match changed behaviour of new grep case fold

This commit is contained in:
ache 1999-10-29 05:11:06 +00:00
parent 85e6b23b2e
commit 25e78d8b60
2 changed files with 4 additions and 4 deletions

View File

@ -210,10 +210,10 @@ stricoll(s1, s2)
char *p, line1[MAXLINELEN], line2[MAXLINELEN];
for (p = line1; *s1; s1++)
*p++ = toupper((unsigned char)*s1);
*p++ = tolower((unsigned char)*s1);
*p = '\0';
for (p = line2; *s2; s2++)
*p++ = toupper((unsigned char)*s2);
*p++ = tolower((unsigned char)*s2);
*p = '\0';
return strcoll(s1, s2);
}

View File

@ -270,10 +270,10 @@ stricoll(s1, s2)
char *p, line1[MAXLINELEN], line2[MAXLINELEN];
for (p = line1; *s1; s1++)
*p++ = toupper((unsigned char)*s1);
*p++ = tolower((unsigned char)*s1);
*p = '\0';
for (p = line2; *s2; s2++)
*p++ = toupper((unsigned char)*s2);
*p++ = tolower((unsigned char)*s2);
*p = '\0';
return strcoll(s1, s2);
}