summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-10-07 14:07:48 +0200
committeranonym <anonym@riseup.net>2017-10-08 11:31:00 +0200
commite7683471133bb514cb799b366293779ec2f1575e (patch)
treeb96bc0063d3039619bedc8cf13d3d08652704ded
parenta13ce347af0e2d28c51a4e930789b42996e31b69 (diff)
Decode Base64.decode64 return value appropriately.
It returns strings encoded in ASCII-8bit.
-rw-r--r--features/support/helpers/remote_shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/support/helpers/remote_shell.rb b/features/support/helpers/remote_shell.rb
index b890578..aea20dc 100644
--- a/features/support/helpers/remote_shell.rb
+++ b/features/support/helpers/remote_shell.rb
@@ -157,7 +157,7 @@ module RemoteShell
end
def read()
- Base64.decode64(self.class.open(@vm, 'read', @path))
+ Base64.decode64(self.class.open(@vm, 'read', @path)).force_encoding('utf-8')
end
def write(data)