From ba46b4c07ee1ff3fa91340f7ab32fd75c9371a34 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Sun, 1 May 2016 13:28:18 -0400 Subject: [PATCH] lib/core/file: use Bytes in file copy (or else binary copy fail) Signed-off-by: Jean Privat --- lib/core/file.nit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/file.nit b/lib/core/file.nit index 0454f1d..def1cd2 100644 --- a/lib/core/file.nit +++ b/lib/core/file.nit @@ -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 -- 1.7.9.5