From: Jean Privat Date: Sun, 1 May 2016 17:28:18 +0000 (-0400) Subject: lib/core/file: use Bytes in file copy (or else binary copy fail) X-Git-Url: http://nitlanguage.org lib/core/file: use Bytes in file copy (or else binary copy fail) Signed-off-by: Jean Privat --- 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