mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(expand): Always copy in text mode. POSIX says
the input and output must be text.
This commit is contained in:
1 parent
8831c9589a
commit
44f0501d4f
1 file changed
+1
-4
+1
-4
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user