(main): When stdout is in binary mode, make sure all

input files are also read in binary mode.
This commit is contained in:
Jim Meyering 1999-05-18 14:13:33 +00:00
parent d9076a130e
commit 98270d63fb

View File

@ -666,6 +666,9 @@ main (int argc, char **argv)
/* Switch stdout to BINARY mode. */
binary_output = 1;
SET_BINARY (output_desc);
/* When stdout is in binary mode, make sure all input files are
also read in binary mode. */
file_open_mode |= O_BINARY;
}
else if (quote)
{