32 |
|
char *argv[]; |
33 |
|
{ |
34 |
|
int unbuff = 0; |
35 |
+ |
int binout = 0; |
36 |
|
int i; |
37 |
|
char *curtab; |
38 |
|
int curbytes; |
80 |
|
fputs(": input size too big\n", stderr); |
81 |
|
exit(1); |
82 |
|
} |
83 |
< |
if (curbytes) |
83 |
> |
if (curbytes) { |
84 |
|
curtab = ""; |
85 |
+ |
++binout; |
86 |
+ |
} |
87 |
|
break; |
88 |
|
case '\0': |
89 |
|
tabc[nfiles] = curtab; |
131 |
|
exit(1); |
132 |
|
} |
133 |
|
} |
134 |
+ |
if (binout) /* binary output? */ |
135 |
+ |
SET_FILE_BINARY(stdout); |
136 |
+ |
#ifdef getc_unlocked /* avoid lock/unlock overhead */ |
137 |
+ |
for (i = nfiles; i--; ) |
138 |
+ |
flockfile(input[i]); |
139 |
+ |
flockfile(stdout); |
140 |
+ |
#endif |
141 |
|
puteol = 0; /* check for ASCII output */ |
142 |
|
for (i = nfiles; i--; ) |
143 |
|
if (!bytsiz[i] || isprint(tabc[i][0]) || tabc[i][0] == '\t') { |