summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index f7831fe9b..350638176 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -456,6 +456,7 @@ fhandler_tty_slave::open (int flags, mode_t)
{
*this = *(fhandler_tty_slave *) arch;
termios_printf ("copied tty fhandler archetype");
+ set_flags ((flags & ~O_TEXT) | O_BINARY);
cygheap->open_fhs++;
goto out;
}