This project is closed and read-only.
Actions
Bug #912
closedConfusion over encoding returned by IO#read & IO.read
Bug #912:
Confusion over encoding returned by IO#read & IO.read
Status:
Rejected
Assignee:
Description
=begin
I find it confusing that IO#read & IO.read return an ASCII-8BIT string when a length is specified, but not when the entire file is read (no length specified).
Given that we have "binread" to read binary data, why not make "read(length)" work like gets("", length) so it consistently returns the encoding?
=end
Actions