lib/core/file: use Bytes in file copy (or else binary copy fail)
authorJean Privat <jean@pryen.org>
Sun, 1 May 2016 17:28:18 +0000 (13:28 -0400)
committerJean Privat <jean@pryen.org>
Sun, 1 May 2016 18:22:28 +0000 (14:22 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/core/file.nit

index 0454f1d..def1cd2 100644 (file)
@@ -498,8 +498,8 @@ class Path
                var output = dest.open_wo
 
                while not input.eof do
-                       var buffer = input.read(1024)
-                       output.write buffer
+                       var buffer = input.read_bytes(1024)
+                       output.write_bytes buffer
                end
 
                input.close