aboutsummaryrefslogtreecommitdiff
path: root/x11-fonts/pcf2bdf/files/patch-pcf2bdf.cc
blob: 3327a35c1525fb2ed834f344739398007886c472 (plain) (blame)
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
--- pcf2bdf.cc.orig	Mon Oct 21 01:35:29 2002
+++ pcf2bdf.cc	Mon Jan 20 23:11:46 2003
@@ -577,7 +577,7 @@
   }
   if (ifilename)
   {
-    ifp = fopen(ifilename, "rb");
+    ifp = fopen(ifilename, "r");
     if (!ifp)
       return error_exit("failed to open input pcf file");
   }
@@ -595,7 +595,7 @@
     fclose(ifp);
     char buf[1024];
     sprintf(buf, "gzip -dc %s", ifilename); // TODO
-    ifp = popen(buf, "rb");
+    ifp = popen(buf, "r");
     _setmode(fileno(ifp), O_BINARY);
     read_bytes = 0;
     if (!ifp)
@@ -604,7 +604,7 @@
   
   if (ofilename)
   {
-    ofp = fopen(ofilename, "wb");
+    ofp = fopen(ofilename, "w");
     if (!ofp)
       return error_exit("failed to open output bdf file");
   }