+Sat Jul 29 11:59:29 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * environ.cc (parse_thing): Make binmode a DWORD.
+ * hinfo.cc (hinfo::init_std_file_from_handle): Use 'binmode' to
+ determine default open mode.
+ * winsup.h: Declare binmode.
+
Thu Jul 27 22:54:28 2000 Jason Tishler <jt@dothill.com>
* dcrt0.cc (dummy_autoload): Add load statement for RegDeleteValueA.
hinfo::init_std_file_from_handle (int fd, HANDLE handle,
DWORD myaccess, const char *name)
{
- int bin = __fmode;
+ int bin = binmode ? O_BINARY : 0;
/* Check to see if we're being redirected - if not then
we open then as consoles */
if (fd == 0 || fd == 1 || fd == 2)
extern BOOL allow_ntea;
extern BOOL strip_title_path;
extern DWORD chunksize;
-extern BOOL binmode;
-BOOL threadsafe;
BOOL reset_com = TRUE;
static BOOL envcache = TRUE;
} values[2];
} known[] =
{
- {"binmode", {&binmode}, justset, NULL, {{FALSE}, {TRUE}}},
+ {"binmode", {x: &binmode}, justset, NULL, {{0}, {O_BINARY}}},
{"envcache", {&envcache}, justset, NULL, {{TRUE}, {FALSE}}},
{"error_start", {func: &error_start_init}, isfunc, NULL, {{0}, {0}}},
{"export", {&export_settings}, justset, NULL, {{FALSE}, {TRUE}}},
{"strip_title", {&strip_title_path}, justset, NULL, {{FALSE}, {TRUE}}},
{"title", {&display_title}, justset, NULL, {{FALSE}, {TRUE}}},
{"tty", {NULL}, set_process_state, NULL, {{0}, {PID_USETTY}}},
- {"threadsafe", {&threadsafe}, justset, NULL, {{TRUE}, {FALSE}}},
{NULL, {0}, justset, 0, {{0}, {0}}}
};