From: "riskwa (riskwa anon)" Date: 2012-04-08T18:54:41+09:00 Subject: [ruby-core:44189] [ruby-trunk - Bug #6271][Open] textmode File#read on CRLF Issue #6271 has been reported by riskwa (riskwa anon). ---------------------------------------- Bug #6271: textmode File#read on CRLF https://bugs.ruby-lang.org/issues/6271 Author: riskwa (riskwa anon) Status: Open Priority: Normal Assignee: Category: Target version: 1.9.3 ruby -v: 1.9.3p125 (2012-02-16) [i386-mingw32] I'm not sure this is bug, when "File#read(X)" for textmode finishes inside of CRLF, stream keeps CR unread against my intuition. The following code prints "\r" forever for CRLF. File.open(__FILE__, "r") do |f| until f.eof? p f.read(1) end end -- http://bugs.ruby-lang.org/