From: "nobu (Nobuyoshi Nakada)" Date: 2012-04-08T20:59:33+09:00 Subject: [ruby-core:44190] [ruby-trunk - Bug #6271][Closed] textmode File#read on CRLF Issue #6271 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Closed Seems fixed already in the repository. ---------------------------------------- Bug #6271: textmode File#read on CRLF https://bugs.ruby-lang.org/issues/6271#change-25717 Author: riskwa (riskwa anon) Status: Closed 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/