summaryrefslogtreecommitdiff
path: root/Build/source/utils/t1utils/TLpatches/patch-04-TL-binary
blob: c9c84c8d848845a27bfdb697e4f7b69df413a939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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)