Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2016 09:31:52 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302828 - head/contrib/one-true-awk
Message-ID:  <201607140931.u6E9VqG4031366@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ache
Date: Thu Jul 14 09:31:52 2016
New Revision: 302828
URL: https://svnweb.freebsd.org/changeset/base/302828

Log:
  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.

Modified:
  head/contrib/one-true-awk/b.c

Modified: head/contrib/one-true-awk/b.c
==============================================================================
--- head/contrib/one-true-awk/b.c	Thu Jul 14 09:26:53 2016	(r302827)
+++ head/contrib/one-true-awk/b.c	Thu Jul 14 09:31:52 2016	(r302828)
@@ -296,11 +296,7 @@ static int collate_range_cmp(int a, int 
 		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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607140931.u6E9VqG4031366>