diff lib-src/hexl.c @ 15019:30bc23af98e3

(main) [DJGPP v2]: Don't change to binary for a tty.
author Richard M. Stallman <rms@gnu.org>
date Sun, 14 Apr 1996 17:11:47 +0000
parents 2a4f0129d30d
children 85edb1a5281a
line wrap: on
line diff
--- a/lib-src/hexl.c	Sun Apr 14 17:08:49 1996 +0000
+++ b/lib-src/hexl.c	Sun Apr 14 17:11:47 1996 +0000
@@ -187,7 +187,8 @@
 	{
 #ifdef MSDOS
 #if __DJGPP__ >= 2
-	  setmode (fileno (stdout), O_BINARY);
+          if (!isatty (fileno (fp)))
+	    setmode (fileno (fp), O_BINARY);
 #else
 	  (fp)->_flag &= ~_IOTEXT; /* read binary */
 	  _setmode (fileno (fp), O_BINARY);