mirror of
https://github.com/curl/curl.git
synced 2026-07-26 15:07:15 +03:00
- Reuven Wachtfogel made curl -o - properly produce a binary output on windows
(no newline translations). Use -B/--use-ascii if you rather get the ascii approach.
This commit is contained in:
parent
0b317b72ae
commit
a0474685c1
3 changed files with 8 additions and 2 deletions
|
|
@ -4584,7 +4584,7 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
|
|||
if(!config->errors)
|
||||
config->errors = stderr;
|
||||
|
||||
if(!outfile && !config->use_ascii) {
|
||||
if((!outfile || !strcmp(outfile, "-")) && !config->use_ascii) {
|
||||
/* We get the output to stdout and we have not got the ASCII/text
|
||||
flag, then set stdout to be binary */
|
||||
SET_BINMODE(stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue