wks: Put stdout into binary mode for Windows at another place.
authorWerner Koch <wk@gnupg.org>
Wed, 8 Mar 2017 16:48:55 +0000 (17:48 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 8 Mar 2017 16:48:55 +0000 (17:48 +0100)
* tools/wks-util.c (wks_send_mime): Set stdout to binary.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/wks-util.c

index 389d4a4..d78e01d 100644 (file)
@@ -276,7 +276,11 @@ wks_send_mime (mime_maker_t mime)
 
   /* Without any option we take a short path.  */
   if (!opt.use_sendmail && !opt.output)
-    return mime_maker_make (mime, es_stdout);
+    {
+      es_set_binary (es_stdout);
+      return mime_maker_make (mime, es_stdout);
+    }
+
 
   mail = es_fopenmem (0, "w+b");
   if (!mail)