bundlerEnv: support unicode executables (#31145)

This commit is contained in:
Michael Fellinger 2017-11-03 12:31:16 +01:00 committed by zimbatm
parent b2093d4611
commit d36a83a784

View File

@ -18,7 +18,8 @@ paths.each do |path|
next unless File.directory?("#{path}/nix-support/gem-meta")
name = File.read("#{path}/nix-support/gem-meta/name")
executables = File.read("#{path}/nix-support/gem-meta/executables").split
executables = File.read("#{path}/nix-support/gem-meta/executables")
.force_encoding('UTF-8').split
executables.each do |exe|
File.open("#{out}/bin/#{exe}", "w") do |f|
f.write(<<-EOF)