From 5e9cd5208eb0cb6c4c9f872d6db5c94bac955884 Mon Sep 17 00:00:00 2001 From: eregon Date: Mon, 27 Aug 2018 14:25:14 +0000 Subject: 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 --- template/fake.rb.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/fake.rb.in b/template/fake.rb.in index 542bc3c4ba..27df02e966 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 -- cgit v1.2.3