diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-01-06 03:58:35 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-01-06 03:58:35 +0000 |
commit | 116b92eb0fefaf10f43d1e621b84a7c529add86c (patch) | |
tree | 531d96405ea022aaefacc25980fb5d1915a826b8 /lib-src/b2m.c | |
parent | 41bd596286258dbe2ac3876d224c6b866c5ad92e (diff) | |
download | emacs-116b92eb0fefaf10f43d1e621b84a7c529add86c.tar.gz |
(main) [MSDOS]: Open all files as binary.
Diffstat (limited to 'lib-src/b2m.c')
-rw-r--r-- | lib-src/b2m.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c index 2bf7767ec4b..f4f3888345c 100644 --- a/lib-src/b2m.c +++ b/lib-src/b2m.c @@ -18,6 +18,9 @@ #include <stdio.h> #include <time.h> #include <sys/types.h> +#ifdef MSDOS +#include <fcntl.h> +#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); |