[Pkg-gnupg-commit] [gnupg2] 45/124: wks: Put stdout into binary mode for Windows at another place.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Apr 5 15:55:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit ed5575ec550ff16b0b901a23c6aa3eb3d47b0575
Author: Werner Koch <wk at gnupg.org>
Date: Wed Mar 8 17:48:55 2017 +0100
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 at gnupg.org>
---
tools/wks-util.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/wks-util.c b/tools/wks-util.c
index 389d4a4..d78e01d 100644
--- a/tools/wks-util.c
+++ b/tools/wks-util.c
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list