Skip to content
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

Don't mess up downloaded content on Windows #24

Merged
merged 1 commit into from Mar 8, 2024

Conversation

patrickbkr
Copy link
Contributor

Set curl STDIN/OUT to :raw, otherwise the CRLF -> LF conversion will mess up the contents.

Set curl STDIN/OUT to :raw, otherwise the CRLF -> LF
conversion will mess up the contents.
@miyagawa
Copy link
Owner

miyagawa commented Mar 8, 2024

https://metacpan.org/pod/IPC::Run3#binmode_stdin,-binmode_stdout,-binmode_stderr

If the value is false or not specified, the default is ":crlf" on Windows and ":raw" otherwise.

@miyagawa miyagawa merged commit 93bbfab into miyagawa:master Mar 8, 2024
@patrickbkr
Copy link
Contributor Author

patrickbkr commented Mar 8, 2024 via email

@miyagawa
Copy link
Owner

miyagawa commented Mar 8, 2024

yep, feel free to create another PR. Meanwhile I'm having some issues in CI for the SSL cert stuff.

@patrickbkr patrickbkr deleted the curl-windows-no-crlf-conv branch March 12, 2024 09:00
patrickbkr added a commit to Raku/App-Rakubrew that referenced this pull request Mar 12, 2024
PAR doesn't know about DLL dependencies. One needs to explicitly tell it
which DLLs to include in the build. Without those DLLs HTTP::Tinyish
skipped LWP and HTTP::Tiny because those DLLs were missing for SSL support.
It then chose the Curl backend. That contained a bug, which messed up the
downloaded content by converting CRLF -> LF. That is now fixed in
miyagawa/HTTP-Tinyish#24

We need to explicitly use PAR::Packer 1.057 and not the latest version,
because of another bug that causes Dynaloader to fail to find the included
DLLs and thus the user observing the same failure mode. See
rschupp/PAR-Packer#86
patrickbkr added a commit to Raku/App-Rakubrew that referenced this pull request Mar 12, 2024
PAR doesn't know about DLL dependencies. One needs to explicitly tell it
which DLLs to include in the build. Without those DLLs HTTP::Tinyish
skipped LWP and HTTP::Tiny because those DLLs were missing for SSL support.
It then chose the Curl backend. That contained a bug, which messed up the
downloaded content by converting CRLF -> LF. That is now fixed in
miyagawa/HTTP-Tinyish#24

We need to explicitly use PAR::Packer 1.057 and not the latest version,
because of another bug that causes Dynaloader to fail to find the included
DLLs and thus the user observing the same failure mode. See
rschupp/PAR-Packer#86
patrickbkr added a commit to Raku/App-Rakubrew that referenced this pull request Mar 12, 2024
PAR doesn't know about DLL dependencies. One needs to explicitly tell it
which DLLs to include in the build. Without those DLLs HTTP::Tinyish
skipped LWP and HTTP::Tiny because those DLLs were missing for SSL support.
It then chose the Curl backend. That contained a bug, which messed up the
downloaded content by converting CRLF -> LF. That is now fixed in
miyagawa/HTTP-Tinyish#24

We need to explicitly use PAR::Packer 1.057 and not the latest version,
because of another bug that causes Dynaloader to fail to find the included
DLLs and thus the user observing the same failure mode. See
rschupp/PAR-Packer#86
patrickbkr added a commit to Raku/App-Rakubrew that referenced this pull request Mar 12, 2024
PAR doesn't know about DLL dependencies. One needs to explicitly tell it
which DLLs to include in the build. Without those DLLs HTTP::Tinyish
skipped LWP and HTTP::Tiny because those DLLs were missing for SSL support.
It then chose the Curl backend. That contained a bug, which messed up the
downloaded content by converting CRLF -> LF. That is now fixed in
miyagawa/HTTP-Tinyish#24

We need to explicitly use PAR::Packer 1.057 and not the latest version,
because of another bug that causes Dynaloader to fail to find the included
DLLs and thus the user observing the same failure mode. See
rschupp/PAR-Packer#86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants