From c6880c90ff2d2182c472976eab875d4c01481ee3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 6 Jan 1994 03:58:35 +0000 Subject: [PATCH] (main) [MSDOS]: Open all files as binary. --- lib-src/b2m.c | 8 ++++++++ lib-src/etags.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/lib-src/b2m.c b/lib-src/b2m.c index 2bf7767ec4..f4f3888345 100644 --- a/lib-src/b2m.c +++ b/lib-src/b2m.c @@ -18,6 +18,9 @@ #include #include #include +#ifdef MSDOS +#include +#endif #include <../src/config.h> @@ -45,6 +48,11 @@ main (argc, argv) int argc; char **argv; { +#ifdef MSDOS + _fmode = O_BINARY; /* all of files are treated as binary files */ + (stdout)->_flag &= ~_IOTEXT; + (stdin)->_flag &= ~_IOTEXT; +#endif ltoday = time(0); today = ctime(<oday); diff --git a/lib-src/etags.c b/lib-src/etags.c index 5f7ee3437f..423c3987d5 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -28,6 +28,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 9.8 */ +#ifdef MSDOS +#include +#endif /* MSDOS */ + #ifdef HAVE_CONFIG_H #include <../src/config.h> #endif @@ -546,6 +550,10 @@ main (argc, argv) extern char *massage_name (); #endif +#ifdef MSDOS + _fmode = O_BINARY; /* all of files are treated as binary files */ +#endif /* MSDOS */ + progname = argv[0]; #ifndef CTAGS -- 2.20.1