summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
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