Mercurial > emacs
changeset 15018:2a4f0129d30d
(main) [DJGPP v2]: Don't change to binary for a tty.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 14 Apr 1996 17:08:49 +0000 |
parents | 11c175c0b7de |
children | 30bc23af98e3 |
files | lib-src/hexl.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/hexl.c Sat Apr 13 19:14:07 1996 +0000 +++ b/lib-src/hexl.c Sun Apr 14 17:08:49 1996 +0000 @@ -138,7 +138,8 @@ #ifdef MSDOS #if __DJGPP__ >= 2 - setmode (fileno (stdout), O_BINARY); + if (!isatty (fileno (stdout))) + setmode (fileno (stdout), O_BINARY); #else (stdout)->_flag &= ~_IOTEXT; /* print binary */ _setmode (fileno (stdout), O_BINARY);