[asdf-install-devel] Problem Report + Patch: Extraneous 0x0A byte at beginning of downloaded file stream [clisp 2.44, netbsd -current amd64]
Gary King
gwking at metabang.com
Wed Jul 9 21:06:04 UTC 2008
Hi Taylor,
Thanks for pointing this out and for the patch; I'll try to get this
into the main body sometime later this week.
Am I write that you are using CLISP?
On Jul 9, 2008, at 1:46 PM, Taylor Venable wrote:
> I've read about this in a few places on the internet but I haven't
> seen a solution yet. When I try to (asdf-install:install :cl-ppcre)
> the temporary file that is downloaded into my home directory contains
> an extra 0x0A byte at the beginning. I'm thinking that perhaps
> URL-CONNECTION accidentally leaves the \n part of the line-terminator
> from the previous line in the stream after parsing out the headers of
> the HTTP response. Removing the first byte of the stream before
> writing its contents to the file fixes the problem.
>
> Here's a (hackish, but works for me) patch for port.lisp:
>
> @@ -331,12 +331,14 @@
> url
> file-name)
> (force-output)
> - #+:clisp (setf (stream-element-type stream)
> - '(unsigned-byte 8))
> + #+:clisp (progn
> + (setf (stream-element-type stream)
> + '(unsigned-byte 8))
> + (read-byte stream))
> (let ((ok? nil) (o nil))
> (unwind-protect
> (progn
>
> --
> Taylor Venable
> _______________________________________________
> asdf-install-devel mailing list
> asdf-install-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/asdf-install-devel
--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM
More information about the asdf-install-devel
mailing list