From owner-cvs-all@FreeBSD.ORG Tue May 17 12:47:14 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 651D316A4CE; Tue, 17 May 2005 12:47:14 +0000 (GMT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA93943D8B; Tue, 17 May 2005 12:47:13 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.218.63) by smtp01.syd.iprimus.net.au (7.0.036) id 4263F6DC00A40665; Tue, 17 May 2005 22:47:12 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 8CE0B4371; Tue, 17 May 2005 22:48:48 +1000 (EST) Date: Tue, 17 May 2005 22:48:48 +1000 From: Tim Robbins To: Ruslan Ermilov Message-ID: <20050517124848.GA75358@cat.robbins.dropbear.id.au> References: <200505161911.j4GJBdQS034729@repoman.freebsd.org> <20050516192505.GA11854@nagual.pp.ru> <20050516193516.GA14960@ip.net.ua> <20050517045140.GA34657@nagual.pp.ru> <20050517053839.GB58437@ip.net.ua> <20050517055342.GA35793@nagual.pp.ru> <20050517075937.GA59350@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050517075937.GA59350@ip.net.ua> User-Agent: Mutt/1.4.1i cc: Andrey Chernov cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/contrib/one-true-awk - Imported sources X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 12:47:14 -0000 On Tue, May 17, 2005 at 10:59:37AM +0300, Ruslan Ermilov wrote: > On Tue, May 17, 2005 at 09:53:42AM +0400, Andrey Chernov wrote: > > On Tue, May 17, 2005 at 08:38:39AM +0300, Ruslan Ermilov wrote: > > > > We should commit either your or his variant. Awk the only thing left in > > > > the base system which not honors collating here and awk's author > > > > constantly decline or ignore our patches. > > > > > > > Our locale patches, to be politically correct. :-) > > > > It is clear from the context. > > > > BTW, why not now? If you fear taking files off the branch, we can avoid > > this. Just place the patch to the building directory and apply it at > > 'make beforedepend' stage. > > > OK, I will do it (after I hear something from Tim). My patches were designed to show that one-true-awk could be made to use the interface fairly easily, automatically gaining support for locale-sensitive collating in [a-z] bracket expressions, multibyte characters, etc., but it was never quite ready for "prime time". The issues that needed to be sorted out were: (1) how to ensure patches would be accepted upstream, or otherwise, how to minimize local diffs. (It's almost as simple as replacing "b.c" with a reimplementation built in , but there are a few places where the internals of "struct fa" are accessed.) (2) how to deal with the differences between historic awk REs, POSIX awk REs, and POSIX BREs. (From memory, this is mostly handled by my patch already.) (3) what to do about the libc regex routines being slower than the old awk routines in some cases. For now, I'd suggest committing the simpler patches to use the locale's collating order in [a-z] bracket expressions. When I have time, I'll try to come up with a new version of my patch to make awk use libc regex routines that better addresses the issues I mentioned above. Tim