chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] z3: gzip compatibility


From: Tobia Conforto
Subject: Re: [Chicken-users] z3: gzip compatibility
Date: Tue, 2 Dec 2008 10:04:29 +0100

Daishi Kato wrote:
Does anyone know if I can use z3 egg to reproduce the same result made by gzip?

Yes you can, but you have to use the right functions.

Note that a file in gzip format includes some zlib-encoded data, after a header, but it's not plain zlib-encoded data.

This works:

$ echo hello > test
$ gzip test
$ csi -q
#;1> (use z3)
; loading /usr/local/lib/chicken/3/z3.so ...
#;2> (read (z3:open-compressed-input-file "test.gz"))
hello
#;3>


Tobia




reply via email to

[Prev in Thread] Current Thread [Next in Thread]