1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

wks: Put stdout into binary mode for Windows at another place.

* tools/wks-util.c (wks_send_mime): Set stdout to binary.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-03-08 17:48:55 +01:00
parent 5c83759364
commit ed5575ec55
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View 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)