www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/22/04:31:20

From: please hold <not_quite AT my-deja DOT com>
Newsgroups: microsoft.public.webdesign.html,comp.os.msdos.djgpp
Subject: Re: HTML Tidy, WindowsME, and DJGPP
Date: Fri, 22 Sep 2000 07:52:45 GMT
Organization: Deja.com - Before you buy.
Lines: 97
Message-ID: <8qf347$464$1@nnrp1.deja.com>
References: <8qe4cj$1f3$1 AT nnrp1 DOT deja DOT com> <t6blss4n9j6291tk0pacucm84l3utcitm1 AT 4ax DOT com>
NNTP-Posting-Host: 63.23.31.43
X-Article-Creation-Date: Fri Sep 22 07:52:45 2000 GMT
X-Http-User-Agent: Mozilla/3.01Gold (Macintosh; I; 68K)
X-Http-Proxy: 1.0 x55.deja.com:80 (Squid/1.1.22) for client 63.23.31.43
X-MyDeja-Info: XMYDJUIDnot_quite
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <t6blss4n9j6291tk0pacucm84l3utcitm1 AT 4ax DOT com>,
  Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote:
> On Thu, 21 Sep 2000 23:08:19 GMT, please hold <not_quite AT my-deja DOT com>
> wrote:
>
> >  Did WindowsME break HTML Tidy
> >
> >          [http://www.w3.org/People/Raggett/tidy.exe]
> >
> > and/or DJGPP?
>
> Quite likely.  They're DOS programs, and Windows ME isn't DOS; it's
> Windows.
>
> >  For a long time, I have been using the DGPP bash shell to segregate
> >HTML Tidy's stderr and stdout output by invoking tidy.exe from a
command
> >line of the form
> >
> >   % tidy < input.html > output.html > errs.1
> >
> >  Since I installed Windows ME, however, this no longer works.
> >
> >  What I get is what I would expect to get if I had used the command
> >line
> >
> >   % tidy < input.html > output.html 2>&1
> >
> >i.e., stderr is merged with stdout.
> >
> >  Anyone else seen this?
>
> Have you played with redir.exe from DJGPP?  redir.exe can redirect
> stderr for DJGPP programs (and maybe even for other DOS programs; I
> haven't checked).
>
> --


   No, I hadn't, but I ran a test:


 Input file `junk.html'
 ----------------------
 <a xyz=*@#$%>whatever<q>

 Command line
 ------------
 $ redir -o barf.html -e errs.1 tidy junk.html

 Output file `barf.html'
 ------------------------ quote ------------------------------
 Tidy (vers 4th August 2000) Parsing "junk.html"
 line 1 column 1 - Warning: inserting missing 'title' element
 line 2 column 1 - Warning: missing </q>
 line 2 column 1 - Warning: trimming empty <q>
 line 2 column 1 - Warning: missing </a>

 junk.html: Document content looks like HTML 4.01 Transitional
 4 warnings/errors were found!

 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
 <meta name="generator" content="HTML Tidy, see www.w3.org">
 <title></title>
 </head>
 <body>
 <a xyz="*@#$%">whatever</a>
 </body>
 </html>

 HTML & CSS specifications are available from http://www.w3.org/
 To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
 Please send bug reports to Dave Raggett care of <html-tidy AT w3 DOT org>
 Lobby your company to join W3C, see http://www.w3.org/Consortium
 ------------------------- unquote ----------------------------------

 Output file `errs.1'?
 ---------------------

 file `errs.1' is empty!
 ~~~~~~~~~~~~~~~~~~~~~~~

 stderr is merged with stdout!

 Looks like DJGPP may have to rebuild everything under Windows ME to
clear up this mess.

--
 Access to the real command line is like all freedoms:
 once you let the software police take it away,
 you'll never see it again.[See also http://knights.rave.org/]


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019