bundlerEnv: support unicode executables (#31145)
commitd36a83a7840e159afed4f9646bdc912630b1bb41
authorMichael Fellinger <m.fellinger@gmail.com>
dateFri 3 Nov 2017, 12:31 (9 years ago)
parentb2093d4
pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb+2−1
@@ -18,7 +18,8 @@ paths.each do |path|
1818 next unless File.directory?("#{path}/nix-support/gem-meta")
1919
2020 name = File.read("#{path}/nix-support/gem-meta/name")
21− executables = File.read("#{path}/nix-support/gem-meta/executables").split
21+ executables = File.read("#{path}/nix-support/gem-meta/executables")
22+ .force_encoding('UTF-8').split
2223 executables.each do |exe|
2324 File.open("#{out}/bin/#{exe}", "w") do |f|
2425 f.write(<<-EOF)