[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] z3: gzip compatibility
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] z3: gzip compatibility |
Date: |
Tue, 2 Dec 2008 10:09:07 +0100 |
On Tue, Dec 2, 2008 at 9:49 AM, Daishi Kato <address@hidden> wrote:
>
> #;1> (use z3)
> ; loading /usr/local/chicken-3.2.0/lib/chicken/3/z3.so ...
> #;2> (z3:decode-buffer (read-file "foo.gz"))
> Error: (string-length) bad argument type: (|?????4IK????????e2~|)
>
> Call history:
>
> <syntax> (z3:decode-buffer (read-file "foo.gz"))
> <syntax> (read-file "foo.gz")
> <eval> (z3:decode-buffer (read-file "foo.gz"))
> <eval> (read-file "foo.gz") <--
> #;2>
>
Try "read-all", instead of "read-file". "read-file" will return a list
of s-expr's,
"read-all" returns the contents of the file as a string.
cheers,
felix