unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Guile 2.0.0 cannot open /dev/urandom
@ 2011-02-17 22:58 Martin Ward
  2011-02-18  4:44 ` Mark Harig
  2011-02-27 22:47 ` Andy Wingo
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Ward @ 2011-02-17 22:58 UTC (permalink / raw)
  To: bug-guile


Guile 1.8.6 can open /dev/urandom (which I use for seeding a random
number generator):

% guile
guile> (open-input-file "/dev/urandom")
#<input: /dev/urandom 9>
guile> 

But guile 2.0.0 gives this error:

~/Documents/guile-2.0.0/meta/guile
GNU Guile 2.0.0
Copyright (C) 1995-2011 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (open-input-file "/dev/urandom")
ERROR: In procedure open-file:
ERROR: In procedure fport_end_input: Invalid argument

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]>  ,bt
           0 (open-file "/dev/urandom" "r")
scheme@(guile-user) [1]> 


-- 
			Martin

STRL Reader in Software Engineering and Royal Society Industry Fellow
martin@gkc.org.uk  http://www.cse.dmu.ac.uk/~mward/  Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/
Mirrors:  http://www.gkc.org.uk  and  http://www.gkc.org.uk/gkc



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-03 11:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 22:58 Guile 2.0.0 cannot open /dev/urandom Martin Ward
2011-02-18  4:44 ` Mark Harig
2011-02-27 22:47 ` Andy Wingo
2011-03-03 11:57   ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).