mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Back out non-collating [a-z] ranges.
Instead of changing the whole course to another POSIX-permitted way for consistency and uniformity I decide to completely ignore missing regex fucntionality and focus on fixing bugs in what we have now, too many small obstacles we have choicing other way, counting ports. Corresponding libc changes are backed out in r302824.
This commit is contained in:
parent
c4c8ae8b87
commit
6c2a17d0b5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302828
@ -296,11 +296,7 @@ static int collate_range_cmp(int a, int b)
|
||||
return 0;
|
||||
s[0][0] = a;
|
||||
s[1][0] = b;
|
||||
#ifdef __FreeBSD__
|
||||
return (strcmp(s[0], s[1]));
|
||||
#else
|
||||
return (strcoll(s[0], s[1]));
|
||||
#endif
|
||||
}
|
||||
|
||||
char *cclenter(const char *argp) /* add a character class */
|
||||
|
Loading…
Reference in New Issue
Block a user