From f9a839d906eed1216ed84e495070f5e3988a7806 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 19 Mar 2000 19:55:02 +0000 Subject: Marco G. Salvagno's OS/2 changes --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a6bf56bb6..3e1918be1 100644 --- a/src/main.c +++ b/src/main.c @@ -879,6 +879,13 @@ int main(int argc, char *argv[]) int i; outs.stream = stdout; +#ifdef __EMX__ + /* 20000318 mgs + * we call _fsetmode to fix the problem with fwrite converting newline + * characters (you get mangled text files, and corrupted binary files when + * you download to stdout and redirect it to a file). */ + _fsetmode(stdout, "b"); +#endif memset(&config, 0, sizeof(struct Configurable)); -- cgit v1.2.3