toupper -> tolower to match changed behaviour of new grep case fold
This commit is contained in:
parent
077e8ab387
commit
ff6a49c924
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52616
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user