summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 14:25:14 (GMT)
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 14:25:14 (GMT)
commit5e9cd5208eb0cb6c4c9f872d6db5c94bac955884 (patch)
treebb4908337012a9bcdfdaff08c5636147cb39d1ea /template
parentcea7d047324c6786668a03f428a646a74994dce1 (diff)
Fix template/fake.rb.in when external and internal encodings are set
* To be able to run spec/ruby/command_line/dash_encoding_spec.rb with the in-repo build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 542bc3c..27df02e 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -41,10 +41,10 @@ builddir = File.dirname(File.expand_path(__FILE__))
srcdir = "<%=arg['srcdir']%>"
top_srcdir = File.realpath(srcdir, builddir)
fake = File.join(top_srcdir, "tool/fake.rb")
-eval(File.read(fake), nil, fake)
+eval(File.binread(fake), nil, fake)
ropt = "-r#{__FILE__}"
["RUBYOPT"].each do |flag|
- opt = ENV[flag]
+ opt = ENV[flag].b
opt = opt ? ([ropt] | opt.split).join(" ") : ropt
ENV[flag] = opt
end