diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-18 14:13:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-18 14:13:33 +0000 |
commit | 98270d63fb3f6675d8d609e81ee74c99d714e644 (patch) | |
tree | f410235bc0c20825ef5a5a8410f2cc10521ac051 | |
parent | d9076a130e1fd7fc5864d2fbd2e11736a230b561 (diff) | |
download | coreutils-98270d63fb3f6675d8d609e81ee74c99d714e644.tar.xz |
(main): When stdout is in binary mode, make sure all
input files are also read in binary mode.
-rw-r--r-- | src/cat.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |