archive
archive copied to clipboard
archive_write_files stores files with CRLF-LF coverted on Windows, resulting in corrupted archive
because O_BINARY needs to be passed to open().
I have already proposed https://github.com/r-lib/archive/pull/80 but it was rejected.
See 65a54eb581a7968820fa33ad60bb955b0ab68f7f test for how to reproduce the issue.
alternative solution to use #define O_BINARY
https://github.com/r-lib/archive/pull/99