From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 10:14:09 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id B5740106566C; Fri, 8 Jul 2011 10:14:09 +0000 (UTC) Date: Fri, 8 Jul 2011 10:14:09 +0000 From: Alexander Best To: Tobias Rehbein Message-ID: <20110708101409.GA18776@freebsd.org> References: <20110707183318.GA4157@sushi.pseudo.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110707183318.GA4157@sushi.pseudo.local> Cc: freebsd-questions@freebsd.org Subject: Re: ncal(1) prints control sequences on stdout if stdout is not a tty X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 10:14:09 -0000 On Thu Jul 7 11, Tobias Rehbein wrote: > Hi list, > > being the maintainer of www/nanoblogger, which uses cal(1) to generate the blog > calendar, I noticed that ncal(1), and therefore cal(1), prints control sequences > to stdout in order to highlight the current date. This scrambles the calendar > generated by nanoblogger. > > I fixed this issue in the port but talking to one of the folks of our local unix > user group I was asked why I am not fixing this in ncal(1) as the sane behaviour > would be to omit control sequences if stdout is not a tty. Thinking about that I > decided to create a patch: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/158580 > > I just wanted to ask you fellow FreeBSD users what you think about this issue as > feedback in PRs tends to be slow. hi there, i've assigned your PR to Edwin Groothuis, who has been dealing with ncal(1) a lot lately. I think chances are pretty high he's going to commit your patch this month. cheers. alex > > Regards Tobias