From 44f0501d4fb2fe7dfdd8a6471f4052fa39f2aac4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 11 Jul 2005 18:28:53 +0000 Subject: [PATCH] (expand): Always copy in text mode. POSIX says the input and output must be text. --- src/expand.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/expand.c b/src/expand.c index 8428d3216e..cf360c913a 100644 --- a/src/expand.c +++ b/src/expand.c @@ -276,9 +276,6 @@ expand (void) if (!fp) return; - /* Binary I/O will preserve the original EOL style (DOS/Unix) of files. */ - SET_BINARY2 (fileno (fp), STDOUT_FILENO); - for (;;) { /* Input character, or EOF. */ @@ -303,7 +300,7 @@ expand (void) do { while ((c = getc (fp)) < 0 && (fp = next_file (fp))) - SET_BINARY2 (fileno (fp), STDOUT_FILENO); + continue; if (convert) { -- 2.47.3