New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
19-file-ops.t fails for nqp 2013.09 @ parrot 5.7.0 #133
Comments
|
It seems to work for me, on a Red Hat 6 machine. Could you perhaps try blowing away the install/ directory and recompiling everything? |
|
Dies on Mac OS X too, but only after upgrading parrot from 5.5.0 to 5.7.0 (note: |
|
can you please test this patch? diff --git a/src/io/api.c b/src/io/api.c
index 3296f5c..b2f811a 100644
--- a/src/io/api.c
+++ b/src/io/api.c
@@ -791,7 +791,8 @@ Parrot_io_readall_s(PARROT_INTERP, ARGMOD(PMC *handle))
STRING * const s = io_get_new_empty_string(interp, encoding, -1, remaining_size);
io_sync_buffers_for_read(interp, handle, vtable, read_buffer, write_buffer);
- io_read_chars_append_string(interp, s, handle, vtable, read_buffer, remaining_size);
+ if (remaining_size > 0 && !Parrot_io_eof(interp, handle))
+ io_read_chars_append_string(interp, s, handle, vtable, read_buffer, remaining_size);
return s;
}
} |
|
Here is the patch for downloading: https://gist.github.com/FROGGS/a21d445cf5bce9ab9fb8/raw/581bab9c57b04bdf1d64f5b3b5461f943d977f58/readall_s.diff |
|
|
|
parrot fixed with parrot/parrot@2abb109 |
This fails on gentoo as seen here: Raku/nqp#133 Now it does not try to read from a file when there are no bytes left.
The text was updated successfully, but these errors were encountered: