[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile 2.0.0 cannot open /dev/urandom
From: |
Andy Wingo |
Subject: |
Re: Guile 2.0.0 cannot open /dev/urandom |
Date: |
Thu, 03 Mar 2011 12:57:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi Martin,
On Sun 27 Feb 2011 23:47, Andy Wingo <address@hidden> writes:
> On Thu 17 Feb 2011 23:58, Martin Ward <address@hidden> 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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Guile 2.0.0 cannot open /dev/urandom,
Andy Wingo <=