Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
15018:2a4f0129d30d | 15019:30bc23af98e3 |
---|---|
185 } | 185 } |
186 else | 186 else |
187 { | 187 { |
188 #ifdef MSDOS | 188 #ifdef MSDOS |
189 #if __DJGPP__ >= 2 | 189 #if __DJGPP__ >= 2 |
190 setmode (fileno (stdout), O_BINARY); | 190 if (!isatty (fileno (fp))) |
191 setmode (fileno (fp), O_BINARY); | |
191 #else | 192 #else |
192 (fp)->_flag &= ~_IOTEXT; /* read binary */ | 193 (fp)->_flag &= ~_IOTEXT; /* read binary */ |
193 _setmode (fileno (fp), O_BINARY); | 194 _setmode (fileno (fp), O_BINARY); |
194 #endif | 195 #endif |
195 #endif | 196 #endif |