mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
0b6e23d2c3
PR: ports/179068 Submitted by: Phil Oleson <oz@nixil.net> Approved by: gslin@gslin.org (maintainer)
13 lines
355 B
Ruby
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
|