Втр, 10 Авг 2010, Raul Miller писал(а):
> On Tue, Aug 10, 2010 at 4:06 PM, Sherlock, Ric
> <[email protected]> wrote:
> >> From: Raul Miller
> >> tools/ftp/wget.exe from my copy of j (j602) corrupts the
> >> file when I use -O- to get the file to appear on stdout.
> >>
> >> The version of wget which I normally use does not have this
> >> problem.
> >
> > As noted here
> > http://www.jsoftware.com/jwiki/Addons/web/gethttp#KnownIssues
> > The problem seems to be that on Windows, directing the output to the 
> > session causes LFs to be replaced by CRLFs, thereby corrupting binary files.
> 
> Ok, so it's a known bug.
> 
> That said, the wget I normally use on windows does not have this
> problem.  Of course it's almost 6mb with all its libraries, so I
> do not recommend its use.  But we need something better
> than a buggy wget.

I guess it unfair to classify this behaviour as a bug for wget. What
is the version of your wget?  Did you test your 6mb wget with
 wget -O - http://somebinaryfile > file   ;# note the CAPITAL O

If the size of file becomes bigger, then there is crlf conversion.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to