1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/multimedia/ruby-flvtool2/files/patch-setup.rb
Steve Wills 0b6e23d2c3 - Fix with Ruby 1.9
PR:		ports/179068
Submitted by:	Phil Oleson <oz@nixil.net>
Approved by:	gslin@gslin.org (maintainer)
2013-06-02 11:16:49 +00:00

13 lines
355 B
Ruby

--- setup.rb.orig 2013-05-28 15:52:34.000000000 -0600
+++ setup.rb 2013-05-28 15:54:12.000000000 -0600
@@ -1311,6 +1311,9 @@ class Installer
File.open(path) {|f|
line = f.gets
}
+ if RUBY_VERSION >= "1.9"
+ line.force_encoding('ASCII-8BIT')
+ end
return nil unless /\A#!/ =~ line
parse(line)
end