From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 20 10:25:58 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85280106564A for ; Mon, 20 Apr 2009 10:25:58 +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 41FB18FC13 for ; Mon, 20 Apr 2009 10:25:57 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id AD0129CB112; Mon, 20 Apr 2009 12:24:44 +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 P7gboyy8l2Y5; Mon, 20 Apr 2009 12:24:33 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 0E2069CB2D2; Mon, 20 Apr 2009 12:24:33 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n3KAOWTR029803; Mon, 20 Apr 2009 12:24:32 +0200 (CEST) (envelope-from rdivacky) Date: Mon, 20 Apr 2009 12:24:32 +0200 From: Roman Divacky To: "Simon 'corecode' Schubert" Message-ID: <20090420102432.GA29688@freebsd.org> References: <20090420084118.GA16337@freebsd.org> <49EC3E96.50208@fs.ei.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49EC3E96.50208@fs.ei.tum.de> User-Agent: Mutt/1.4.2.3i Cc: hackers@freebsd.org Subject: Re: [PATCH]: today highlighting in [n]cal X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 10:25:58 -0000 On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote: > Hey Roman, > > Roman Divacky wrote: > >I made this patch that highlights today in cal/ncal just like gnu > >cal does.. > > > > www.vlakno.cz/~rdivacky/cal.patch > > Thanks for this patch, I've been meaning to hack one up properly, but > never got to it. They problems I was facing seem to exist also with your > patch: > > - only works for wide (cal) mode, not ncal mode it works for ncal > - probably won't work properly with year displays: the year printing > parts of the code use a length argument to printf ("%*s"), which will > confuse escape sequences with actual printed characters I am not sure what you mean by year printing.... can you give me the exact command line?