Hi Martin, On Sun 27 Feb 2011 23:47, Andy Wingo <[email protected]> writes:
> On Thu 17 Feb 2011 23:58, Martin Ward <[email protected]> writes: > >> scheme@(guile-user)> (open-input-file "/dev/urandom") >> ERROR: In procedure open-file: >> ERROR: In procedure fport_end_input: Invalid argument > > It seems that Guile is scanning the first few lines of the file for a > "coding" declaration. This is because it is being opened in textual > mode; if you open with (open-file "/dev/urandom" "rb") you will probably > get what you want. I have fixed the (open-input-file "/dev/urandom") case, by having the coding: scan use the read buffer if possible, to avoid a seek. That should catch all cases of interest. Regards, Andy -- http://wingolog.org/
