IO#set_encoding returns nil instead of itself #4712
This one-liner shows the issue:
puts $stdin.set_encoding(Encoding::UTF_8) ? "ok" : "not ok"
Is there a reasoning behind this, or is this a bug?
The text was updated successfully, but these errors were encountered: