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

* 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
This commit is contained in:
naruse 2010-04-10 12:28:13 +00:00
parent 1325437297
commit a315079390
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Apr 10 21:26:22 2010 NARUSE, Yui <naruse@ruby-lang.org>
* 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@segment7.net>
* lib/rdoc: Import RDoc 2.5.2

View file

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