1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(main) [DJGPP v2]: Don't change to binary for a tty.

This commit is contained in:
Richard M. Stallman 1996-04-14 17:11:47 +00:00
parent fa78ef7af3
commit 3f5b4e35cc

View File

@ -138,7 +138,8 @@ main (argc, argv)
#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);
@ -186,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);