[erlang-bugs] file:pread 0 bytes in raw mode yields eof

Raimo Niskanen <>
Tue May 31 13:29:23 CEST 2011


On Tue, May 31, 2011 at 12:15:53PM +0200, Richard Carlsson wrote:
> On 04/22/2011 10:20 PM, Richard Carlsson wrote:
> >On 04/22/2011 09:48 PM, Richard Carlsson wrote:
> >>Normally, file:read and file:pread both return an empty list or binary
> >>if the number of bytes to be read is zero, but if the file is opened in
> >>raw mode, trying to read zero bytes yields EOF instead.
> >
> >Clarification: only file:pread yields eof in raw mode. file:read works
> >as normal. Tested on R13B04 and R14B01.
> 
> Did anybody at OTP notice this mail? I've had no feedback.

Yes, I did. I tagged it as important and moved on. Sorry about that.
This time I created a ticket of type Bug.

> 
>    /Richard
> _______________________________________________
> erlang-bugs mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-bugs

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB


More information about the erlang-bugs mailing list