Re: md5-digest-for-FILE

Emilio Lopes <[email protected]> Sun, 19 Nov 2006 17:20:15 +0100
Newsgroups gmane.lisp.scheme.scsh
Organization The Church of Emacs
Message-ID <[email protected]>
Marco Maggesi writes:

>   $ 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?

Works for me with Scsh 0.6.7 on GNU/Linux:

   % ll emptyfile
   -rw-r--r--  1 ecl ecl 0 Nov 19 17:17 emptyfile
   % scsh
   Welcome to scsh 0.6.7 (R6RS)
   Type ,? for help.
   > (call-with-input-file "emptyfile" md5-digest-for-port)
   '#{Md5-digest}
   >  

But I guess this doesn't help you much.  Sorry...

-- 
Emílio C. Lopes
Munich, Germany