* 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:
@ -1508,7 +1508,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
|
||||
if (i >= nmounts)
|
||||
{
|
||||
backslashify (pathbuf, dst, 0); /* just convert */
|
||||
*flags = 0;
|
||||
*flags = PATH_BINARY; /* Default to binmode */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user