core: Don't encode! since string might be frozen
This commit is contained in:
parent
ed688ec775
commit
2385305f6f
|
@ -25,7 +25,7 @@ module Vagrant
|
|||
def initialize(*command)
|
||||
@options = command.last.is_a?(Hash) ? command.pop : {}
|
||||
@command = command.dup
|
||||
@command.each { |s| s.encode!(Encoding.default_external) }
|
||||
@command.each { |s| s.encode(Encoding.default_external) }
|
||||
@command[0] = Which.which(@command[0]) if !File.file?(@command[0])
|
||||
if !@command[0]
|
||||
raise Errors::CommandUnavailableWindows, file: command[0] if Platform.windows?
|
||||
|
|
Loading…
Reference in New Issue