scsh-users
[Top] [All Lists]

md5-digest-for-FILE

To: scsh-users@scsh.net
Subject: md5-digest-for-FILE
From: Marco Maggesi <maggesi@math.unifi.it>
Date: Sun, 19 Nov 2006 16:00:30 +0000 (UTC)
List-id: <scsh-users.list-id.scsh.net>
Organization: Università degli Studi di Firenze
Sender: news <news@sea.gmane.org>
Hi everyone,

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.

Thank you in advance

Marco Maggesi
Università degli Studi di Firenze
http://www.math.unifi.it/~maggesi/

-- 
Marco Maggesi
Università degli Studi di Firenze
http://www.math.unifi.it/~maggesi/


<Prev in Thread] Current Thread [Next in Thread>