lib/core/file: use Bytes in file copy (or else binary copy fail)
[nit.git] / 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