- 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:
Daniel Stenberg 2009-06-16 18:03:28 +00:00
parent 0b317b72ae
commit a0474685c1
3 changed files with 8 additions and 2 deletions

View file

@ -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);