# HG changeset patch # User Richard M. Stallman # Date 829501729 0 # Node ID 2a4f0129d30d7bee9174f9f5a3811656273f125e # Parent 11c175c0b7de40a1084a0623a516a5adbd5a29cc (main) [DJGPP v2]: Don't change to binary for a tty. diff -r 11c175c0b7de -r 2a4f0129d30d lib-src/hexl.c --- 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);