Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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?