# | Line 118 | Line 118 | char *fname; | |
---|---|---|
118 | sprintf(errmsg, "cannot open input file \"%s\"", fname); | |
119 | error(SYSTEM, errmsg); | |
120 | } | |
121 | + | #ifdef MSDOS |
122 | + | if (inform != 'a') |
123 | + | setmode(fileno(fp), O_BINARY); |
124 | + | #endif |
125 | /* set up output */ | |
126 | setoutput(outvals); | |
127 | switch (outform) { | |
# | Line 131 | Line 135 | char *fname; | |
135 | default: | |
136 | error(CONSISTENCY, "botched output format"); | |
137 | } | |
134 | – | fputformat(formstr(outform), stdout); |
135 | – | putchar('\n'); |
138 | if (hresolu > 0 && vresolu > 0) | |
139 | fprtresolu(hresolu, vresolu, stdout); | |
140 | /* process file */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |