Messages in this thread | | | Date | Sat, 23 Jan 1999 17:25:52 -0500 (EST) | From | "Adam D. Bradley" <> | Subject | Re: kernel mirrors behavior changed |
| |
On Sat, 23 Jan 1999, Mike wrote:
> On Sat, 23 Jan 1999, Jeff Millar wrote: > > > The mx.kernel.org mirror and probably others will thoughtfully (??) > > gunzip the file as it's downloaded, at least when downloaded with > > netscape. However, when it does this under DOS/Win it adds returns that > > patch can't handle. The original kernel.org doesn't gunzip the file, so > > there's no text conversion problem. In addition, the ascii converted > > file retains its .gz suffix...which is just plain wrong. > > > The mirrors are working correctly. It is netscape that is the problem. > If netscape believes that it is downloading a gziped file then it will > gunzip it, but is too dumb to fix the filename after.
Actually, it's probably a personality quirk in the web server running that site. It's seeing the ".gz" filename extension and, rather than sending the file with a "Content-Type: application/gzip" or "Content-Type: application/octet-stream", it sends it with a "Content-Encoding: gzip" and some other content-type (text, maybe?). A prefereable behavior (in my estimation) would be for the client to ask for "patch-X.X.X" and be sent the contents of "patch-X-X-X.gz" with "Content-Encoding: gzip" set so that the client would use the decoded filename rathern than the filename of the pre-encoded entity.
I've been hacking HTTP servers for too long.
ANYWAY, on to the original question!
I think you can make those MS-Mangled(TM)(R)(C) patched files usable by piping them through something like "sed s/\r\n/\n/g", right?
Adam -- Your lives aren't small, but \\ Adam Davenport Bradley, Grad Student you're living them in a small \\ Boston University Computer Science way. Live openly and expansively! \\ artdodge@cs.bu.edu 353-8921/MCS211 II Cor 6:12-13 (The Message) <>< \\ http://www.netwinder.org/~artdodge
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |