diff --git a/src/zopfli/zopfli_bin.c b/src/zopfli/zopfli_bin.c index 747828db..b8db66e8 100644 --- a/src/zopfli/zopfli_bin.c +++ b/src/zopfli/zopfli_bin.c @@ -112,17 +112,13 @@ static void CompressFile(const ZopfliOptions* options, SaveFile(outfilename, out, outsize); } else { size_t i; -/* Windows workaround for stdout output. */ #if _WIN32 + /* Windows workaround for stdout output. */ _setmode(_fileno(stdout), _O_BINARY); #endif for (i = 0; i < outsize; i++) { - /* Works only if terminal does not convert newlines. */ printf("%c", out[i]); } -#if _WIN32 - _setmode(_fileno(stdout), _O_TEXT); -#endif } free(out);