From bc9fb03df41b8b613185a0a972a29fc2568b5ee9 Mon Sep 17 00:00:00 2001 From: Alexander Presber Date: Thu, 9 May 2013 19:13:23 +0200 Subject: [PATCH] this fixes https://github.com/alexeypetrushin/vos/issues/4 by forcing strings being written into ASCII-8BIT encoding --- lib/vos/drivers/ssh_vfs_storage.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vos/drivers/ssh_vfs_storage.rb b/lib/vos/drivers/ssh_vfs_storage.rb index e3d5e6f..f8e1e9e 100644 --- a/lib/vos/drivers/ssh_vfs_storage.rb +++ b/lib/vos/drivers/ssh_vfs_storage.rb @@ -7,6 +7,7 @@ def initialize out end def write data + data = data.force_encoding(Encoding::ASCII_8BIT) @out.write data end end @@ -182,4 +183,4 @@ def with_root path end end end -end \ No newline at end of file +end