X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/364c38d3af67e2b56a90a6547ec9f773967bf1df..1583f1f5de9c64e0e1009d5bb2644420afe1f4a3:/lib-src/digest-doc.c diff --git a/lib-src/digest-doc.c b/lib-src/digest-doc.c index 9db4a19080..16d386f5b4 100644 --- a/lib-src/digest-doc.c +++ b/lib-src/digest-doc.c @@ -1,7 +1,8 @@ /* Give this program DOC-mm.nn.oo as standard input and it outputs to standard output a file of nroff output containing the doc strings. - Copyright (C) 1987, 1994, 2001 Free Software Foundation Inc. + Copyright (C) 1987, 1994, 2001, 2002, 2003, 2004, + 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -25,12 +26,23 @@ #include +#ifdef DOS_NT +#include /* for O_BINARY */ +#include /* for setmode */ +#endif + int main () { register int ch; register int notfirst = 0; +#ifdef DOS_NT + /* DOC is a binary file. */ + if (!isatty (fileno (stdin))) + setmode (fileno (stdin), O_BINARY); +#endif + printf (".TL\n"); printf ("Command Summary for GNU Emacs\n"); printf (".AU\nRichard M. Stallman\n");