From owner-svn-src-all@FreeBSD.ORG Wed Apr 22 13:30:25 2009 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 187EA1065670; Wed, 22 Apr 2009 13:30:25 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id BFE658FC1B; Wed, 22 Apr 2009 13:30:23 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 31F1C9CB0DD; Wed, 22 Apr 2009 15:29:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YZBCDjNVKAz1; Wed, 22 Apr 2009 15:29:01 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id BBF629CB1F3; Wed, 22 Apr 2009 15:29:01 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n3MDT13f001861; Wed, 22 Apr 2009 15:29:01 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 22 Apr 2009 15:29:01 +0200 From: Roman Divacky To: Robert Watson , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Message-ID: <20090422132901.GA1599@freebsd.org> References: <200904201819.n3KIJcZo054306@svn.freebsd.org> <20090421185436.GA18628@zim.MIT.EDU> <20090421190651.GA2505@freebsd.org> <20090421194622.GA19215@zim.MIT.EDU> <20090421202754.GA19417@zim.MIT.EDU> <20090421203106.GA13661@freebsd.org> <20090422060643.GA22109@zim.MIT.EDU> <20090422071918.GA88935@freebsd.org> <20090422124757.GA23877@zim.MIT.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090422124757.GA23877@zim.MIT.EDU> User-Agent: Mutt/1.4.2.3i Cc: Subject: Re: svn commit: r191330 - head/usr.bin/ncal X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 13:30:25 -0000 On Wed, Apr 22, 2009 at 08:47:58AM -0400, David Schultz wrote: > On Wed, Apr 22, 2009, Roman Divacky wrote: > > > > I like your idea about using strcat() things but it wont > > help here because the problem is with the overal design. > > in detail - the short patch highlights " XY" instead of > > just "XY" where some sort of hackery is needed... the pointer > > magic there is for exactly this purpose.. > > > > I'll see if I can improve anything but I doubt that.... > > Aah, that explains the mysterious `+ 1' (which doesn't work for > single-digit dates, does it?) It's probably easier just to get > rid of the daystr / jdaystr hack and do something like > `sprintf(..., "%s%d%s", term_r, dt.d, term_e)'. The amount of > left padding needed before the term_r should be > `(jd_flag ? 4 : 3) - snprintf(NULL, 0, "%d", dt.d)'. It's not a > high priority in any case. yes, as I said. it should be completely rewritten. is there anyone interested in rewriting it? I certainly am not...