aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/textmode.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-01 15:45:20 +0000
committerChristopher Faylor <me@cgf.cx>2000-07-01 15:45:20 +0000
commit51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b (patch)
tree00ce64760366e554d27bd2100958c1c89d95fa45 /winsup/cygwin/textmode.c
parent44cac4112164ac91fe00e3acf0dd1c567a937313 (diff)
downloadnewlib-51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b.zip
newlib-51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b.tar.gz
newlib-51b2ec5d032fdc80dd51fbde0271b8b743f4bd2b.tar.bz2
* binmode.c (cygwin_premain0): Fix erroneous clearing of bit.
* textmode.c (cygwin_premain0): Ditto.
Diffstat (limited to 'winsup/cygwin/textmode.c')
-rw-r--r--winsup/cygwin/textmode.c2
1 files changed, 1 insertions, 1 deletions
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;
}