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

Richard Carlsson carlsson.richard@REDACTED
Tue May 31 12:15:53 CEST 2011


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.

    /Richard



More information about the erlang-bugs mailing list