From: Christian Grothoff Date: Thu, 16 Feb 2012 12:58:11 +0000 (+0000) Subject: LRN: Use binary mode on W32 (lol -CG) X-Git-Tag: initial-import-from-subversion-38251~14840 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=758f38a2171dadd20328c7db93164bbcd46b72dc;p=oweals%2Fgnunet.git LRN: Use binary mode on W32 (lol -CG) --- diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c index 9594c19c2..d3008994f 100644 --- a/src/fs/gnunet-helper-fs-publish.c +++ b/src/fs/gnunet-helper-fs-publish.c @@ -401,6 +401,13 @@ int main(int argc, const char *ex; struct ScanTreeNode *root; +#if WINDOWS + /* We're using stdout to communicate binary data back to the parent; use + * binary mode. + */ + _setmode (1, _O_BINARY); +#endif + /* parse command line */ if ( (argc != 3) && (argc != 2) ) {