Mercurial > emacs
changeset 12328:dbc55496f684
(main): On MSDOS, don't change stdout to binary, and insist on an -o option.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 20 Jun 1995 02:52:38 +0000 |
parents | 2a02456ddc4b |
children | e97b20222345 |
files | lib-src/make-docfile.c |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/make-docfile.c Tue Jun 20 01:07:28 1995 +0000 +++ b/lib-src/make-docfile.c Tue Jun 20 02:52:38 1995 +0000 @@ -114,19 +114,23 @@ progname = argv[0]; + outfile = stdout; + /* Don't put CRs in the DOC file. */ #ifdef MSDOS +#if 0 /* Suspicion is that this causes hanging. + So instead we require people to use -o on MSDOS. */ _fmode = O_BINARY; (stdout)->_flag &= ~_IOTEXT; _setmode (fileno (stdout), O_BINARY); +#endif + outfile = 0; #endif /* MSDOS */ #ifdef WINDOWSNT _fmode = O_BINARY; _setmode (fileno (stdout), O_BINARY); #endif /* WINDOWSNT */ - outfile = stdout; - /* If first two args are -o FILE, output to FILE. */ i = 1; if (argc > i + 1 && !strcmp (argv[i], "-o")) @@ -145,6 +149,9 @@ i += 2; } + if (outfile == 0) + fatal ("No output file specified", ""); + first_infile = i; for (; i < argc; i++) {