summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-30 23:17:43 +0000
committerKarl Berry <karl@freefriends.org>2008-04-30 23:17:43 +0000
commit5eda3aa4d5c3b3ff4c54e011873f2635644cd4f4 (patch)
tree98d065c4392d521650993a73ccdbb8d4cd7bc24e
parent2c40efc9729acb3d036cf29a4adc7966be996957 (diff)
conditionalize SET_BINARY calls
git-svn-id: svn://tug.org/texlive/trunk@7756 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipsk/ChangeLog6
-rw-r--r--Build/source/texk/dvipsk/squeeze.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index d172405529d..25552510df6 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,6 +1,10 @@
+2008-05-01 Karl Berry <karl@tug.org>
+
+ * squeeze.c [O_BINARY]: conditionalize calls to SET_BINARY.
+
2008-04-30 Karl Berry <karl@tug.org>
- * squeeze.c (SET_BINARY) [O_BINARY]: conditionally #define.
+ * squeeze.c (SET_BINARY) [O_BINARY]: conditionalize #define.
Cast call to specialout. (From Akira.)
2008-04-29 Karl Berry <karl@tug.org>
diff --git a/Build/source/texk/dvipsk/squeeze.c b/Build/source/texk/dvipsk/squeeze.c
index 73a71f19baf..5646bc8ab2d 100644
--- a/Build/source/texk/dvipsk/squeeze.c
+++ b/Build/source/texk/dvipsk/squeeze.c
@@ -95,11 +95,12 @@ main (int argc, char *argv[])
}
/* Binary output is safer (for those systems which care to know the
difference) since PostScript can include non-printable characters. */
- if (O_BINARY && !isatty(fileno(in)))
+#if O_BINARY
+ if (!isatty(fileno(in)))
SET_BINARY(fileno(in)) ;
- if (O_BINARY && !isatty(fileno(out)))
+ if (!isatty(fileno(out)))
SET_BINARY(fileno(out)) ;
-
+#endif
(void)fprintf(out, "%%!\n") ;
while (1) {
c = getc(in) ;