summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-11 18:28:53 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-11 18:28:53 +0000
commit44f0501d4fb2fe7dfdd8a6471f4052fa39f2aac4 (patch)
tree55a605e4f30ea1347044e53c870f7b0606b4b1ba /src/expand.c
parent8831c9589aaff9c4d12524f5bd8389065c9d0e7c (diff)
downloadcoreutils-44f0501d4fb2fe7dfdd8a6471f4052fa39f2aac4.tar.xz
(expand): Always copy in text mode. POSIX says
the input and output must be text.
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/expand.c b/src/expand.c
index 8428d3216..cf360c913 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)
{