diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/rdoc/parser.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Apr 2 12:52:25 2010 NAKAMURA Usaku <usa@ruby-lang.org> + + * lib/rdoc/parser.rb (binary?): regression. + Fri Apr 2 11:54:49 2010 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c (init_env): wrong calculation of the head of setenv diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb index d29599c879..9ad1fbdf66 100644 --- a/lib/rdoc/parser.rb +++ b/lib/rdoc/parser.rb @@ -67,7 +67,7 @@ class RDoc::Parser # 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 |