summaryrefslogtreecommitdiff
path: root/Build/source/utils/t1utils/t1utils-1.39-PATCHES/patch-04-TL-binary
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/t1utils/t1utils-1.39-PATCHES/patch-04-TL-binary')
-rw-r--r--Build/source/utils/t1utils/t1utils-1.39-PATCHES/patch-04-TL-binary37
1 files changed, 37 insertions, 0 deletions
diff --git a/Build/source/utils/t1utils/t1utils-1.39-PATCHES/patch-04-TL-binary b/Build/source/utils/t1utils/t1utils-1.39-PATCHES/patch-04-TL-binary
new file mode 100644
index 00000000000..2f85b052be0
--- /dev/null
+++ b/Build/source/utils/t1utils/t1utils-1.39-PATCHES/patch-04-TL-binary
@@ -0,0 +1,37 @@
+ In TeX Live we treat all output files as binary.
+
+diff -ur t1utils-1.39.orig/t1ascii.c t1utils-1.39/t1ascii.c
+--- t1utils-1.39.orig/t1ascii.c 2014-12-12 19:58:33.000000000 +0100
++++ t1utils-1.39/t1ascii.c 2015-03-02 08:52:29.000000000 +0100
+@@ -286,6 +286,7 @@
+ /* As we are processing a PFB (binary) input */
+ /* file, we must set its file mode to binary. */
+ _setmode(_fileno(ifp), _O_BINARY);
++ _setmode(_fileno(ofp), _O_BINARY);
+ #endif
+
+ /* prepare font reader */
+diff -ur t1utils-1.39.orig/t1disasm.c t1utils-1.39/t1disasm.c
+--- t1utils-1.39.orig/t1disasm.c 2015-03-02 08:50:06.000000000 +0100
++++ t1utils-1.39/t1disasm.c 2015-03-02 08:52:29.000000000 +0100
+@@ -717,6 +717,7 @@
+ /* As we might be processing a PFB (binary) input file, we must set its file
+ mode to binary. */
+ _setmode(_fileno(ifp), _O_BINARY);
++ _setmode(_fileno(ofp), _O_BINARY);
+ #endif
+
+ /* prepare font reader */
+diff -ur t1utils-1.39.orig/t1unmac.c t1utils-1.39/t1unmac.c
+--- t1utils-1.39.orig/t1unmac.c 2014-12-12 19:58:33.000000000 +0100
++++ t1utils-1.39/t1unmac.c 2015-03-02 08:52:29.000000000 +0100
+@@ -656,8 +656,7 @@
+ _setmode(_fileno(ifp), _O_BINARY);
+ /* If we are processing a PFB (binary) output */
+ /* file, we must set its file mode to binary. */
+- if (pfb)
+- _setmode(_fileno(ofp), _O_BINARY);
++ _setmode(_fileno(ofp), _O_BINARY);
+ #endif
+
+ if (pfb)