Skip to content

Commit

Permalink
Merge pull request #13525 from chrisroberts/encoding-error
Browse files Browse the repository at this point in the history
Force encoding on command output strings
  • Loading branch information
chrisroberts authored Nov 1, 2024
2 parents ba8646a + 6be63b9 commit 366c525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/providers/virtualbox/driver/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ def execute(*command, &block)
if errored
raise Vagrant::Errors::VBoxManageError,
command: command.inspect,
stderr: r.stderr,
stdout: r.stdout
stderr: r.stderr.to_s.force_encoding("UTF-8"),
stdout: r.stdout.to_s.force_encoding("UTF-8")
end
end

Expand Down

0 comments on commit 366c525

Please sign in to comment.