--- ray/src/rt/rtrace.c 1992/07/21 10:36:37 2.7 +++ ray/src/rt/rtrace.c 1992/10/15 21:13:21 2.8 @@ -118,6 +118,10 @@ char *fname; sprintf(errmsg, "cannot open input file \"%s\"", fname); error(SYSTEM, errmsg); } +#ifdef MSDOS + if (inform != 'a') + setmode(fileno(fp), O_BINARY); +#endif /* set up output */ setoutput(outvals); switch (outform) {