W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Re: error file report missing Tidy 8th July 2000

From: Clamen, Stewart <s.clamen@clairvoyancecorp.com>
Date: Tue, 1 Aug 2000 17:35:46 -0400 (EDT)
Message-ID: <DDFE2CAB87ECD311B02D0000929695E20D6C4D@Wotan.Claritech.Com>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>
On Tue, 11 Jul 2000 23:58:50 -0700 Terry Teague wrote:

		At 11:00 AM -0400 7/9/2000, Mike Bunyan wrote: 
		>Using the facility to parse report to an error file (-f),
the report 
		>is not filled with any message. 
		>This applies for a single file or a batch of files using
wild cards 
		>(*) 
		>eg command line 
		>
		tidy -config localtest.txt -f f:\chap1\errschap1.txt
f:\chap1\*.htm 
		> 
		>Tidy 8th July 2000 version 
		>win2000 o/s NTFS5 
		> 
		>Any thoughts please? 

		I also ran into similar behaviour. I have only briefly
played with the Windows version of Tidy08Jul00 (under W95), but it seems to
ignore the -f option, unlike previous versions. 

		To me this smells like a bug. 

		I haven't looked at the source code yet. 

		Regards, Terry 


Yes, it seems like a bug.  Apply the following patch:

*** tidy.c	Tue Aug 01 17:30:17 2000
--- tidy.c.old	Tue Aug 01 17:34:53 2000
***************
*** 895,901 ****
                  /* and try to open the new error file */
                  fp = fopen(errfile, "w");
  
!                 if (fp != null)
                  {
                      errout = fp;
                      current_errorfile = errfile;
--- 895,901 ----
                  /* and try to open the new error file */
                  fp = fopen(errfile, "w");
  
!                 if (input != null)
                  {
                      errout = fp;
                      current_errorfile = errfile;
Received on Tuesday, 1 August 2000 23:22:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT