* fhandler.cc (fhandler_base::open): Don't set binmode if already set. Don't

check for file.  Files should already be set.  Report on binary mode for
debugging.
(fhandler_base::fhandler_base): Don't set default binmode here.  That's for
later.
* fhandler_console.cc (fhandler_console::output_tcsetattr): Don't set binmode,
ever, for console.
* fhandler_disk_file.cc (fhandler_disk_file::open): Always set the binary mode
to the value derived from mount table.
* path.cc (mount_info::conv_to_win32_path): Default to binmode if path does not
translate into anything in the mount table.
This commit is contained in:
Christopher Faylor
2002-06-04 01:40:53 +00:00
parent e6cd2312d6
commit e02f1e9c81
5 changed files with 42 additions and 24 deletions

View File

@ -719,8 +719,10 @@ fhandler_console::output_tcsetattr (int, struct termios const *t)
/* Ignore the optional_actions stuff, since all output is emitted
instantly */
#if 0
/* Enable/disable LF -> CRLF conversions */
set_w_binary ((t->c_oflag & ONLCR) ? 0 : 1);
#endif
/* All the output bits we can ignore */