ruby-changes:52358
From: eregon <ko1@a...>
Date: Mon, 27 Aug 2018 23:25:19 +0900 (JST)
Subject: [ruby-changes:52358] eregon:r64567 (trunk): Fix template/fake.rb.in when external and internal encodings are set
eregon 2018-08-27 23:25:14 +0900 (Mon, 27 Aug 2018) New Revision: 64567 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64567 Log: 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. Modified files: trunk/template/fake.rb.in Index: template/fake.rb.in =================================================================== --- template/fake.rb.in (revision 64566) +++ template/fake.rb.in (revision 64567) @@ -41,10 +41,10 @@ builddir = File.dirname(File.expand_path https://github.com/ruby/ruby/blob/trunk/template/fake.rb.in#L41 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/