summaryrefslogtreecommitdiff
path: root/contrib/one-true-awk
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2016-07-13 10:01:31 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2016-07-13 10:01:31 +0000
commit1d148a7c3fb8605b43dcf728c68cea4dc453c86d (patch)
tree7487637c588fee9d7da11578f8d58211af554a19 /contrib/one-true-awk
parente2d8dbe43856a01f32b40dde39a347fb9381cc58 (diff)
downloadsrc-test2-1d148a7c3fb8605b43dcf728c68cea4dc453c86d.tar.gz
src-test2-1d148a7c3fb8605b43dcf728c68cea4dc453c86d.zip
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.
Notes
Notes: svn path=/head/; revision=302742
Diffstat (limited to 'contrib/one-true-awk')
-rw-r--r--contrib/one-true-awk/b.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/one-true-awk/b.c b/contrib/one-true-awk/b.c
index 01b91f3f67b6..1bf10b4bfda4 100644
--- a/contrib/one-true-awk/b.c
+++ b/contrib/one-true-awk/b.c
@@ -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 */