diff options
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/binmode.c | 2 | ||||
-rw-r--r-- | winsup/cygwin/textmode.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0321789..44bcaf5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 1 11:43:32 2000 Christopher Faylor <cgf@cygnus.com> + + * binmode.c (cygwin_premain0): Fix erroneous clearing of bit. + * textmode.c (cygwin_premain0): Ditto. + Sat Jul 1 00:24:04 2000 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (_dll_crt0): Renamed from dll_crt0 (). diff --git a/winsup/cygwin/binmode.c b/winsup/cygwin/binmode.c index b498420..afc8854 100644 --- a/winsup/cygwin/binmode.c +++ b/winsup/cygwin/binmode.c @@ -14,6 +14,6 @@ extern int _fmode; void cygwin_premain0(int argc, char **argv) { - _fmode &= _O_TEXT; + _fmode &= ~_O_TEXT; _fmode |= _O_BINARY; } diff --git a/winsup/cygwin/textmode.c b/winsup/cygwin/textmode.c index 83766a2..2e4fc70 100644 --- a/winsup/cygwin/textmode.c +++ b/winsup/cygwin/textmode.c @@ -14,6 +14,6 @@ extern int _fmode; void cygwin_premain0(int argc, char **argv) { - _fmode &= _O_BINARY; + _fmode &= ~_O_BINARY; _fmode |= _O_TEXT; } |