Re: md5-digest-for-FILE

Eric Knauel <[email protected]> Sun, 19 Nov 2006 17:23:58 +0100
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
On Sun 19 Nov 2006 17:00, Marco Maggesi <[email protected]> writes:

> the md5 routine raises an exception on empty streams.  More precisely:
>
>   $ touch emptyfile
>   $ scsh
>   Welcome to scsh 0.6.6 (King Conan)
>   Type ,? for help.
>   > (call-with-input-file "emptyfile" md5-digest-for-port)
>
>   Error: exception
>          #f
>          (< '#{End-of-file} 1024)
>   1> 
>
> Is this the correct behavior or a bug?  In the first case, can you 
> explain to me more on the md5 api?
>
> In the second case, you may find useful to know that I use scsh 0.6.6 
> on an intel macbook pro (tiger) compiled with macports.

This is a bug.  However, this bug has been fixed in the latest release
So, updating to 0.6.7 solves the problems.

-Eric
-- 
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)
signature.asc (application/pgp-signature, 185 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (Darwin)

iD8DBQBFYIUibkvG5P2GZTMRAoi+AJ994c6diKPdxQZ55UyZa9MCmEaEkQCgtfKF
vALVS5Gd8Pl8dTlAieH791Q=
=ppqg
-----END PGP SIGNATURE-----