ruby-changes:15391
From: naruse <ko1@a...>
Date: Sat, 10 Apr 2010 21:28:29 +0900 (JST)
Subject: [ruby-changes:15391] Ruby:r27284 (trunk): * lib/rdoc/markup/preprocess.rb (RDoc::Markup::PreProcess#handle):
naruse 2010-04-10 21:28:13 +0900 (Sat, 10 Apr 2010) New Revision: 27284 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27284 Log: * lib/rdoc/markup/preprocess.rb (RDoc::Markup::PreProcess#handle): use File.binread to avoid locale dependency. Modified files: trunk/ChangeLog trunk/lib/rdoc/markup/preprocess.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27283) +++ ChangeLog (revision 27284) @@ -1,3 +1,8 @@ +Sat Apr 10 21:26:22 2010 NARUSE, Yui <naruse@r...> + + * lib/rdoc/markup/preprocess.rb (RDoc::Markup::PreProcess#handle): + use File.binread to avoid locale dependency. + Sat Apr 10 15:18:26 2010 Eric Hodel <drbrain@s...> * lib/rdoc: Import RDoc 2.5.2 Index: lib/rdoc/markup/preprocess.rb =================================================================== --- lib/rdoc/markup/preprocess.rb (revision 27283) +++ lib/rdoc/markup/preprocess.rb (revision 27284) @@ -46,7 +46,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/