From dffa2a21edeba243ef76b75e0c2081ec15fe95bd Mon Sep 17 00:00:00 2001 From: SSE4 Date: Wed, 3 Apr 2019 19:48:12 +0700 Subject: [PATCH 3/4] 0003 --- lib/spawn-pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spawn-pipe.c b/lib/spawn-pipe.c index 3af5167..09e9cad 100644 --- a/lib/spawn-pipe.c +++ b/lib/spawn-pipe.c @@ -137,10 +137,10 @@ create_pipe (const char *progname, prog_argv = prepare_spawn (prog_argv); if (pipe_stdout) - if (pipe2_safer (ifd, O_BINARY | O_CLOEXEC) < 0) + if (pipe2_safer (ifd, O_TEXT | O_CLOEXEC) < 0) error (EXIT_FAILURE, errno, _("cannot create pipe")); if (pipe_stdin) - if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0) + if (pipe2_safer (ofd, O_TEXT | O_CLOEXEC) < 0) error (EXIT_FAILURE, errno, _("cannot create pipe")); /* Data flow diagram: * -- 2.7.4.windows.1