From a31507939004778e39af5da92bcd6b295b86c11d Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 10 Apr 2010 12:28:13 +0000 Subject: * lib/rdoc/markup/preprocess.rb (RDoc::Markup::PreProcess#handle): use File.binread to avoid locale dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/markup/preprocess.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc') diff --git a/lib/rdoc/markup/preprocess.rb b/lib/rdoc/markup/preprocess.rb index 7aac9df74a..b48f099119 100644 --- a/lib/rdoc/markup/preprocess.rb +++ b/lib/rdoc/markup/preprocess.rb @@ -46,7 +46,7 @@ class RDoc::Markup::PreProcess def include_file(name, indent) if full_name = find_include_file(name) then - content = File.read full_name + content = File.binread full_name content = content.sub(/\A# .*coding[=:].*$/, '').lstrip # strip leading '#'s, but only if all lines start with them -- cgit v1.2.3