nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27473e
)
lib/core/file: use Bytes in file copy (or else binary copy fail)
author
Jean Privat
<jean@pryen.org>
Sun, 1 May 2016 17:28:18 +0000
(13:28 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/lib/core/file.nit
b/lib/core/file.nit
index
0454f1d
..
def1cd2
100644
(file)
--- 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