[ruby-core:123812] [Ruby Bug#21687] IO#pos goes wrong after EOF character(ctrl-z) met.