aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/digest-doc.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 61e0d42ab1c..c448ac31c5d 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,9 +1,14 @@
12006-06-03 Eli Zaretskii <eliz@gnu.org> 12006-06-03 Eli Zaretskii <eliz@gnu.org>
2 2
3 * digest-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
4 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
5 terminal device.
6
3 * sorted-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h. 7 * sorted-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
4 [WINDOWSNT] <top level>: Don't redeclare malloc. 8 [WINDOWSNT] <top level>: Don't redeclare malloc.
5 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a 9 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
6 terminal device. 10 terminal device.
11 (main): Initialize bp, to avoid compiler warnings
7 12
8 * makefile.w32-in: Delete traces of leditcfns.c. 13 * makefile.w32-in: Delete traces of leditcfns.c.
9 14
diff --git a/lib-src/digest-doc.c b/lib-src/digest-doc.c
index 7b5a9677e7c..7787d422e39 100644
--- a/lib-src/digest-doc.c
+++ b/lib-src/digest-doc.c
@@ -26,12 +26,23 @@
26 26
27#include <stdio.h> 27#include <stdio.h>
28 28
29#ifdef DOS_NT
30#include <fcntl.h> /* for O_BINARY */
31#include <io.h> /* for setmode */
32#endif
33
29int 34int
30main () 35main ()
31{ 36{
32 register int ch; 37 register int ch;
33 register int notfirst = 0; 38 register int notfirst = 0;
34 39
40#ifdef DOS_NT
41 /* DOC is a binary file. */
42 if (!isatty (fileno (stdin)))
43 setmode (fileno (stdin), O_BINARY);
44#endif
45
35 printf (".TL\n"); 46 printf (".TL\n");
36 printf ("Command Summary for GNU Emacs\n"); 47 printf ("Command Summary for GNU Emacs\n");
37 printf (".AU\nRichard M. Stallman\n"); 48 printf (".AU\nRichard M. Stallman\n");