Home GnuPG
Diffusion GnuPG 5c8375936427

wks: Put stdout into binary mode for Windows.
5c8375936427Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

wks: Put stdout into binary mode for Windows.

* tools/send-mail.c (send_mail_to_file): Call es_set_binary.

Without that, output to stdout via --send is mangled: The "\r\n" is
translated to "\r\r\n" which is bad because other
software (e.g. Thunderbird) translates this again to "\n\n" and thus
put all mail header liens after the first into the body.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 8 2017, 5:23 PM
Parents
rGdd60e868d2bf: build: Use macOS' compatibility macros to enable all features.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG5c8375936427: wks: Put stdout into binary mode for Windows. (authored by Werner Koch <wk@gnupg.org>).Mar 8 2017, 5:25 PM