From 758f38a2171dadd20328c7db93164bbcd46b72dc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Feb 2012 12:58:11 +0000 Subject: [PATCH] LRN: Use binary mode on W32 (lol -CG) --- src/fs/gnunet-helper-fs-publish.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) ) { -- 2.25.1