After removing collation for [a-z] ranges in r302512, do it here too.

I'll try to keep the change very minimal to not touch contribed code much.
I'll send it upstream when it will be merged to main branches,
but we need the change right now here.
This commit is contained in:
Andrey A. Chernov 2016-07-13 10:01:31 +00:00
parent e2d8dbe438
commit 1d148a7c3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302742

View File

@ -296,7 +296,11 @@ 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 */