From owner-freebsd-cvsweb@FreeBSD.ORG Thu Oct 30 10:31:38 2003 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 718AC16A4CE; Thu, 30 Oct 2003 10:31:38 -0800 (PST) Received: from mail32.messagelabs.com (mail32.messagelabs.com [62.173.108.211]) by mx1.FreeBSD.org (Postfix) with SMTP id B170243FD7; Thu, 30 Oct 2003 10:31:36 -0800 (PST) (envelope-from Ian.Lartey@wolfsonmicro.com) X-VirusChecked: Checked X-Env-Sender: Ian.Lartey@wolfsonmicro.com X-Msg-Ref: server-17.tower-32.messagelabs.com!1067538693!2937657 X-StarScan-Version: 5.1.9.3; banners=wolfsonmicro.com,-,- Received: (qmail 2100 invoked from network); 30 Oct 2003 18:31:34 -0000 Received: from unknown (HELO campbeltown.wolfson.co.uk) (194.217.161.5) by server-17.tower-32.messagelabs.com with SMTP; 30 Oct 2003 18:31:34 -0000 Received: from craigavon (unverified) by campbeltown.wolfson.co.uk ; Thu, 30 Oct 2003 18:34:41 +0000 From: "Ian Lartey" To: =?iso-8859-1?Q?'Ville_Skytt=E4'?= , Date: Thu, 30 Oct 2003 18:31:41 -0000 Organization: Wolfson Microelectronics Message-ID: <003701c39f14$10230a40$0400000a@craigavon> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <1067451783.1285.107.camel@bobcat.mine.nu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: cvsweb 2.9.1 and enscript 1.6.2 X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list [restricted posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 18:31:38 -0000 owner-freebsd-cvsweb@freebsd.org wrote: > On Wed, 2003-10-29 at 02:05, Ian Lartey wrote: > >> I suppose my first question is: >> Does cvsweb 12.9.1 work OK with enscript 1.6.2 ? >> (The comments in the cvswed.conf say yes >> so I'll move onto my to my problem) > > It should, although I have personally only tested with 1.6.4 from > http://people.ssh.com/mtr/genscript/ > >> in "Colored" diff format the line number hyper text links are present >> but result in the following error on the http server: >> .../etc/cvsweb.confenscript: option `--highlight=c' is >> ambiguous,..... > > Huh, I have no idea how "c" gets passed to --highlight or why the > /etc/cvsweb.conf stuff is in the error log. I commented out the redirection of STDERR to /dev/null so I could see what was happening. > Could you post unedited > snippets from the error log? What web server do you run and on what > platform? This is on Apache on Redhat Linux 8. > > For context diffs, the value to --highlight should be "diff", "diffu" > for unified, and "diffs" for side by side diffs. Ah I think I see the problem now - enscript doesn't understand the --highlight option that doEnscript in cvsweb.cgi passes. "enscript --highlight=diffu " results in : enscript: unrecognised option `--highlight=diffu" is ambiguous and the man pages for enscript do not mention the --highlight option. > >> with "Side by side, colored" format the following error occurs: >> .../etc/cvsweb.confenscript: option `--highlight=diffs' is >> ambiguous,..... > > Hm. What diff* files do you have in the enscript hl directory? > Could you try the most recent highlighting stuff available from the > enscript homepage above? I have added those now. > What about enscript-colored unified diffs, > do they work? What about enscript-colorized source code (not diff) > views? * using --pretty-print=c fixes the problem. * editing cvsweb.cgi and substituting "--pretty-print=" for "--highlight" gives properly enscript-colorized source code. with this in place diffs, diff, diffu all now work. There seems to be a problem with the humanreadable/unified (non enscript coloured views...more on that in a later mail). > >> I'm not sure what I have missed out, lang_cvsweb.st is in the hl >> directory of enscript. >> >> could this mean I have a problem with IPC::RUN ? > > Most likely not, looks like an enscript problem to me. To isolate the > problem, I'd suggest (in addition to the above) running enscript from > the command line for unified, context and side by side diffs using > diffu, diff and diffs for values of --highlight respectively. > > Let the list know how it goes, and thanks for testing the beta! > That's OK thanks for the pointer. Ian. > _______________________________________________ > freebsd-cvsweb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-cvsweb > To unsubscribe, send any mail to > "freebsd-cvsweb-unsubscribe@freebsd.org" > > ______________________________________________________________ > __________ This email has been scanned for all viruses by the > MessageLabs Email Security System. > ______________________________________________________________ > __________ -- Ian Lartey Applications Software Engineer DDI - +44 (0)131 272 7079 Wolfson Microelectronics plc www.wolfsonmicro.com T +44 131 272 7000 F +44 131 272 7001 Registered in Scotland 89839 This message may contain confidential or proprietary information. If you receive this message in error, please immediately delete it, destroy all copies of it and notify the sender. Any views expressed in this message are those of the individual sender, except where the message states otherwise. We take reasonable precautions to ensure our Emails are virus free. However, we cannot accept responsibility for any virus transmitted by us and recommend that you subject any incoming Email to your own virus checking procedures.