summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-04-14 17:11:47 +0000
committerRichard M. Stallman <rms@gnu.org>1996-04-14 17:11:47 +0000
commit4b02b1f3e73ad49447f41c60c3d12eb1295cc9a8 (patch)
tree47e39222e23bba703d46600db11657f03d332259 /lib-src
parent2e7dbdf9c1d588157c88b90aa91d14b367122948 (diff)
downloademacs-4b02b1f3e73ad49447f41c60c3d12eb1295cc9a8.tar.gz
(main) [DJGPP v2]: Don't change to binary for a tty.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/hexl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index b3def05049d..beb170613dd 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -187,7 +187,8 @@ main (argc, argv)
{
#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);