summaryrefslogtreecommitdiff
path: root/Build/source/utils/t1utils/TLpatches/patch-04-TL-binary
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/t1utils/TLpatches/patch-04-TL-binary')
-rw-r--r--Build/source/utils/t1utils/TLpatches/patch-04-TL-binary48
1 files changed, 48 insertions, 0 deletions
diff --git a/Build/source/utils/t1utils/TLpatches/patch-04-TL-binary b/Build/source/utils/t1utils/TLpatches/patch-04-TL-binary
new file mode 100644
index 00000000000..c9c84c8d848
--- /dev/null
+++ b/Build/source/utils/t1utils/TLpatches/patch-04-TL-binary
@@ -0,0 +1,48 @@
+diff -ur t1utils-1.42/t1ascii.c t1utils-src/t1ascii.c
+--- t1utils-1.42/t1ascii.c Wed Oct 28 00:08:00 2020
++++ t1utils-src/t1ascii.c Sat Oct 31 13:02:49 2020
+@@ -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.42/t1asm.c t1utils-src/t1asm.c
+--- t1utils-1.42/t1asm.c Wed Oct 28 00:08:00 2020
++++ t1utils-src/t1asm.c Sat Oct 31 13:03:47 2020
+@@ -715,8 +715,7 @@
+ #if defined(_MSDOS) || defined(_WIN32)
+ /* 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
+
+ /* Finally, we loop until no more input. Some special things to look for are
+diff -ur t1utils-1.42/t1disasm.c t1utils-src/t1disasm.c
+--- t1utils-1.42/t1disasm.c Wed Oct 28 00:08:00 2020
++++ t1utils-src/t1disasm.c Sat Oct 31 13:04:32 2020
+@@ -727,6 +727,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.42/t1unmac.c t1utils-src/t1unmac.c
+--- t1utils-1.42/t1unmac.c Wed Oct 28 00:08:00 2020
++++ t1utils-src/t1unmac.c Sat Oct 31 13:06:12 2020
+@@ -656,8 +655,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)