1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc/parser.rb (binary?): regression.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-04-02 03:53:01 +00:00
parent c78dbcd131
commit 10547e3c41
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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