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

This commit is contained in:
Andrey A. Chernov 1999-10-29 05:11:06 +00:00
parent 077e8ab387
commit ff6a49c924
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52616
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);
}