From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 20 09:21:30 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 8C3B31065676; Mon, 20 Apr 2009 09:21:30 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [IPv6:2001:4ca0:22ff:10::7]) by mx1.freebsd.org (Postfix) with ESMTP id 1F1048FC1F; Mon, 20 Apr 2009 09:21:30 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id 1A7691C30D; Mon, 20 Apr 2009 11:21:28 +0200 (CEST) X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella.fs.ei.tum.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pkuSsq-+7kvB; Mon, 20 Apr 2009 11:21:27 +0200 (CEST) Received: from [192.168.10.11] (dyn.144-85-223-056.dsl.vtx.ch [144.85.223.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id F1B9C1C265; Mon, 20 Apr 2009 11:21:26 +0200 (CEST) Message-ID: <49EC3E96.50208@fs.ei.tum.de> Date: Mon, 20 Apr 2009 11:21:26 +0200 From: Simon 'corecode' Schubert User-Agent: Thunderbird 2.0.0.18 (X11/20090109) MIME-Version: 1.0 To: Roman Divacky References: <20090420084118.GA16337@freebsd.org> In-Reply-To: <20090420084118.GA16337@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable 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 09:21:30 -0000 Hey Roman, Roman Divacky wrote: > I made this patch that highlights today in cal/ncal just like gnu > cal does.. >=20 > www.vlakno.cz/~rdivacky/cal.patch Thanks for this patch, I've been meaning to hack one up properly, but=20 never got to it. They problems I was facing seem to exist also with your= =20 patch: - only works for wide (cal) mode, not ncal mode - probably won't work properly with year displays: the year printing=20 parts of the code use a length argument to printf ("%*s"), which will=20 confuse escape sequences with actual printed characters cheers simon --=20 <3 the future +++ RENT this banner advert +++ ASCII Ribbon /"\ rock the past +++ space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1 += ++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \