aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-06-16 18:03:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-06-16 18:03:28 +0000
commita0474685c19371f25c9de92683ab38a3ff29ef56 (patch)
tree49f90ed9ab48f19393fbe46f17a7e8c21035232d /src
parent0b317b72ae6f23eb4dbd0a22509a20ff5acb2958 (diff)
- 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.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 858910828..3d8b54aba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);