ruby-changes:15289
From: usa <ko1@a...>
Date: Fri, 2 Apr 2010 12:53:19 +0900 (JST)
Subject: [ruby-changes:15289] Ruby:r27174 (trunk): * lib/rdoc/parser.rb (binary?): regression.
usa 2010-04-02 12:53:01 +0900 (Fri, 02 Apr 2010) New Revision: 27174 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27174 Log: * lib/rdoc/parser.rb (binary?): regression. Modified files: trunk/ChangeLog trunk/lib/rdoc/parser.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27173) +++ ChangeLog (revision 27174) @@ -1,3 +1,7 @@ +Fri Apr 2 12:52:25 2010 NAKAMURA Usaku <usa@r...> + + * lib/rdoc/parser.rb (binary?): regression. + Fri Apr 2 11:54:49 2010 NAKAMURA Usaku <usa@r...> * win32/win32.c (init_env): wrong calculation of the head of setenv Index: lib/rdoc/parser.rb =================================================================== --- lib/rdoc/parser.rb (revision 27173) +++ lib/rdoc/parser.rb (revision 27174) @@ -67,7 +67,7 @@ # content that an RDoc parser shouldn't try to consume. def self.binary?(file) - s = File.read(file, File.stat(file).blksize) || "" + s = File.read(file, File.stat(file).blksize || 1024) || "" if s[0, 2] == Marshal.dump('')[0, 2] then true -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/