48
48
IsNativeAscii = is_native_ascii(Initial),
49
49
case catch handle_options(Access, Filename, Mode, SuggestedOptions, IsNativeAscii) of
50
{ok, IsNetworkAscii, AcceptedOptions} when Access =:= read, binary(Filename) ->
50
{ok, IsNetworkAscii, AcceptedOptions} when Access =:= read, is_binary(Filename) ->
51
51
State = #read_state{options = AcceptedOptions,
52
52
blksize = lookup_blksize(AcceptedOptions),