[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Problem with source snapshots - Browser Downloads are in
Re: [Bug-gnubg] Problem with source snapshots - Browser Downloads are in ASCII?
Tue, 08 Feb 2011 05:25:53 -0700
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20101207 Thunderbird/3.1.7
On 08/02/2011 5:07 AM, Michael Petch wrote:
Seems to be browser download related. The file downloaded by wget (for
me at least) has no issues and ls -l shows:
-rw-r--r-- 1 root root 14199163 2011-02-06 20:50
The file downloaded by firefox is smaller for me (and exhibits the
same behavior you see). ls -l shows:
-rw-r--r-- 1 mpetch mpetch 14194658 2011-02-08 04:54
As well Christian's method of using gunzip first works.
I discovered what was going on (but not why). I should have realized
that one of the ways a download would be larger (and not work) is if the
binary file was transferred as ASCII and not binary. Firefox is
downloading with ASCII on so we are getting extra characters because of
the CR/CRLF translation that gets done.
gunzip seems to work because it is smart enough to realize that the file
is corrupt because of CRLF translation issues, so it fixes it on the
fly. tar's decompression isn't that sophisticated so it throws an error.
When I have time I'll take a look at the headers returned by Firefox on
an http download. There must be something in there that is causing the
tar.gz to be downloaded as ASCII rather than binary.
I seem to recall other posts in the recent past about browser downloads
appearing corrupt. Probably all related.