X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fdata%2Fsack.c;fp=tests%2Fdata%2Fsack.c;h=0a1ada7fdaab03ed351768b7ae8e4f53e5e860ad;hb=b067fd38937b0c46e846f51bd32c1ec50228ba8b;hp=b9a09b3ffd3052febf1a8f2544cf182139c0f7d0;hpb=32af4826ef82cd3ea8b92ddac2e10ae019fe1bce;p=pspp diff --git a/tests/data/sack.c b/tests/data/sack.c index b9a09b3ffd..0a1ada7fda 100644 --- a/tests/data/sack.c +++ b/tests/data/sack.c @@ -38,6 +38,7 @@ #include "gl/intprops.h" #include "gl/progname.h" #include "gl/xalloc.h" +#include "gl/xbinary-io.h" struct buffer { @@ -704,6 +705,7 @@ main (int argc, char **argv) if (input != stdin) fclose (input); + xset_binary_mode (fileno (stdout), O_BINARY); fwrite (output.data, output.size, 1, stdout); free (output.data);