1 diff -u -r ../leptonica-1.74.1/src/boxbasic.c ./src/boxbasic.c
2 --- ../leptonica-1.74.1/src/boxbasic.c 2016-12-02 20:42:49.000000000 +0100
3 +++ ./src/boxbasic.c 2017-01-29 22:11:16.276072146 +0100
5 return ERROR_INT("stream not opened", procName, 1);
6 ret = boxaaWriteStream(fp, baa);
8 - L_INFO("work-around: writing to a temp file\n", procName);
10 if ((fp = fopenWriteWinTempfile()) == NULL)
11 return ERROR_INT("tmpfile stream not opened", procName, 1);
13 return ERROR_INT("stream not opened", procName, 1);
14 ret = boxaWriteStream(fp, boxa);
16 - L_INFO("work-around: writing to a temp file\n", procName);
18 if ((fp = fopenWriteWinTempfile()) == NULL)
19 return ERROR_INT("tmpfile stream not opened", procName, 1);
20 diff -u -r ../leptonica-1.74.1/src/colormap.c ./src/colormap.c
21 --- ../leptonica-1.74.1/src/colormap.c 2016-12-02 20:42:53.000000000 +0100
22 +++ ./src/colormap.c 2017-01-29 22:11:16.316071650 +0100
24 return ERROR_INT("stream not opened", procName, 1);
25 ret = pixcmapWriteStream(fp, cmap);
27 - L_INFO("work-around: writing to a temp file\n", procName);
29 if ((fp = fopenWriteWinTempfile()) == NULL)
30 return ERROR_INT("tmpfile stream not opened", procName, 1);
31 diff -u -r ../leptonica-1.74.1/src/dewarp1.c ./src/dewarp1.c
32 --- ../leptonica-1.74.1/src/dewarp1.c 2016-12-02 20:42:57.000000000 +0100
33 +++ ./src/dewarp1.c 2017-01-29 22:11:16.352071204 +0100
35 return ERROR_INT("stream not opened", procName, 1);
36 ret = dewarpWriteStream(fp, dew);
38 - L_INFO("work-around: writing to a temp file\n", procName);
40 if ((fp = fopenWriteWinTempfile()) == NULL)
41 return ERROR_INT("tmpfile stream not opened", procName, 1);
43 return ERROR_INT("stream not opened", procName, 1);
44 ret = dewarpaWriteStream(fp, dewa);
46 - L_INFO("work-around: writing to a temp file\n", procName);
48 if ((fp = fopenWriteWinTempfile()) == NULL)
49 return ERROR_INT("tmpfile stream not opened", procName, 1);
50 diff -u -r ../leptonica-1.74.1/src/fpix1.c ./src/fpix1.c
51 --- ../leptonica-1.74.1/src/fpix1.c 2016-12-02 20:43:01.000000000 +0100
52 +++ ./src/fpix1.c 2017-01-29 22:11:16.400070608 +0100
54 return ERROR_INT("stream not opened", procName, 1);
55 ret = fpixWriteStream(fp, fpix);
57 - L_INFO("work-around: writing to a temp file\n", procName);
59 if ((fp = fopenWriteWinTempfile()) == NULL)
60 return ERROR_INT("tmpfile stream not opened", procName, 1);
62 return ERROR_INT("stream not opened", procName, 1);
63 ret = dpixWriteStream(fp, dpix);
65 - L_INFO("work-around: writing to a temp file\n", procName);
67 if ((fp = fopenWriteWinTempfile()) == NULL)
68 return ERROR_INT("tmpfile stream not opened", procName, 1);
69 diff -u -r ../leptonica-1.74.1/src/jp2kio.c ./src/jp2kio.c
70 --- ../leptonica-1.74.1/src/jp2kio.c 2016-12-02 20:43:11.000000000 +0100
71 +++ ./src/jp2kio.c 2017-01-29 22:11:16.424070311 +0100
73 return ERROR_INT("stream not opened", procName, 1);
74 ret = pixWriteStreamJp2k(fp, pix, quality, nlevels, hint, debug);
76 - L_INFO("work-around: writing to a temp file\n", procName);
78 if ((fp = fopenWriteWinTempfile()) == NULL)
79 return ERROR_INT("tmpfile stream not opened", procName, 1);
80 diff -u -r ../leptonica-1.74.1/src/jpegio.c ./src/jpegio.c
81 --- ../leptonica-1.74.1/src/jpegio.c 2016-12-02 20:43:18.000000000 +0100
82 +++ ./src/jpegio.c 2017-01-29 22:11:16.428070261 +0100
84 return ERROR_INT("stream not opened", procName, 1);
85 ret = pixWriteStreamJpeg(fp, pix, quality, progressive);
87 - L_INFO("work-around: writing to a temp file\n", procName);
89 if ((fp = fopenWriteWinTempfile()) == NULL)
90 return ERROR_INT("tmpfile stream not opened", procName, 1);
91 diff -u -r ../leptonica-1.74.1/src/numabasic.c ./src/numabasic.c
92 --- ../leptonica-1.74.1/src/numabasic.c 2016-12-02 20:43:25.000000000 +0100
93 +++ ./src/numabasic.c 2017-01-29 22:11:16.444070062 +0100
95 return ERROR_INT("stream not opened", procName, 1);
96 ret = numaWriteStream(fp, na);
98 - L_INFO("work-around: writing to a temp file\n", procName);
100 if ((fp = fopenWriteWinTempfile()) == NULL)
101 return ERROR_INT("tmpfile stream not opened", procName, 1);
102 @@ -1962,7 +1961,6 @@
103 return ERROR_INT("stream not opened", procName, 1);
104 ret = numaaWriteStream(fp, naa);
106 - L_INFO("work-around: writing to a temp file\n", procName);
108 if ((fp = fopenWriteWinTempfile()) == NULL)
109 return ERROR_INT("tmpfile stream not opened", procName, 1);
110 diff -u -r ../leptonica-1.74.1/src/pixabasic.c ./src/pixabasic.c
111 --- ../leptonica-1.74.1/src/pixabasic.c 2016-12-02 20:43:29.000000000 +0100
112 +++ ./src/pixabasic.c 2017-01-29 22:11:16.488069517 +0100
113 @@ -2626,7 +2626,6 @@
114 return ERROR_INT("stream not opened", procName, 1);
115 ret = pixaWriteStream(fp, pixa);
117 - L_INFO("work-around: writing to a temp file\n", procName);
119 if ((fp = fopenWriteWinTempfile()) == NULL)
120 return ERROR_INT("tmpfile stream not opened", procName, 1);
121 @@ -2998,7 +2997,6 @@
122 return ERROR_INT("stream not opened", procName, 1);
123 ret = pixaaWriteStream(fp, paa);
125 - L_INFO("work-around: writing to a temp file\n", procName);
127 if ((fp = fopenWriteWinTempfile()) == NULL)
128 return ERROR_INT("tmpfile stream not opened", procName, 1);
129 diff -u -r ../leptonica-1.74.1/src/pixcomp.c ./src/pixcomp.c
130 --- ../leptonica-1.74.1/src/pixcomp.c 2016-12-02 20:43:33.000000000 +0100
131 +++ ./src/pixcomp.c 2017-01-29 22:11:16.500069368 +0100
132 @@ -1841,7 +1841,6 @@
133 return ERROR_INT("stream not opened", procName, 1);
134 ret = pixacompWriteStream(fp, pixac);
136 - L_INFO("work-around: writing to a temp file\n", procName);
138 if ((fp = fopenWriteWinTempfile()) == NULL)
139 return ERROR_INT("tmpfile stream not opened", procName, 1);
140 diff -u -r ../leptonica-1.74.1/src/pnmio.c ./src/pnmio.c
141 --- ../leptonica-1.74.1/src/pnmio.c 2016-12-27 19:30:34.000000000 +0100
142 +++ ./src/pnmio.c 2017-01-29 22:11:16.512069219 +0100
143 @@ -1179,7 +1179,6 @@
144 return ERROR_INT("stream not opened", procName, 1);
145 ret = pixWriteStreamPnm(fp, pix);
147 - L_INFO("work-around: writing to a temp file\n", procName);
149 if ((fp = fopenWriteWinTempfile()) == NULL)
150 return ERROR_INT("tmpfile stream not opened", procName, 1);
151 @@ -1234,7 +1233,6 @@
152 return ERROR_INT("stream not opened", procName, 1);
153 ret = pixWriteStreamPam(fp, pix);
155 - L_INFO("work-around: writing to a temp file\n", procName);
157 if ((fp = fopenWriteWinTempfile()) == NULL)
158 return ERROR_INT("tmpfile stream not opened", procName, 1);
159 diff -u -r ../leptonica-1.74.1/src/ptabasic.c ./src/ptabasic.c
160 --- ../leptonica-1.74.1/src/ptabasic.c 2016-12-02 20:43:49.000000000 +0100
161 +++ ./src/ptabasic.c 2017-01-29 22:11:16.520069120 +0100
163 return ERROR_INT("stream not opened", procName, 1);
164 ret = ptaWriteStream(fp, pta, type);
166 - L_INFO("work-around: writing to a temp file\n", procName);
168 if ((fp = fopenWriteWinTempfile()) == NULL)
169 return ERROR_INT("tmpfile stream not opened", procName, 1);
170 @@ -1463,7 +1462,6 @@
171 return ERROR_INT("stream not opened", procName, 1);
172 ret = ptaaWriteStream(fp, ptaa, type);
174 - L_INFO("work-around: writing to a temp file\n", procName);
176 if ((fp = fopenWriteWinTempfile()) == NULL)
177 return ERROR_INT("tmpfile stream not opened", procName, 1);
178 diff -u -r ../leptonica-1.74.1/src/sarray1.c ./src/sarray1.c
179 --- ../leptonica-1.74.1/src/sarray1.c 2016-12-21 21:11:34.000000000 +0100
180 +++ ./src/sarray1.c 2017-01-29 22:11:16.552068723 +0100
181 @@ -1567,7 +1567,6 @@
182 return ERROR_INT("stream not opened", procName, 1);
183 ret = sarrayWriteStream(fp, sa);
185 - L_INFO("work-around: writing to a temp file\n", procName);
187 if ((fp = fopenWriteWinTempfile()) == NULL)
188 return ERROR_INT("tmpfile stream not opened", procName, 1);
189 diff -u -r ../leptonica-1.74.1/src/utils2.c ./src/utils2.c
190 --- ../leptonica-1.74.1/src/utils2.c 2016-12-21 21:11:53.000000000 +0100
191 +++ ./src/utils2.c 2017-01-29 22:11:16.584068326 +0100
192 @@ -1635,7 +1635,6 @@
193 if ((fp = fmemopen((void *)data, size, "rb")) == NULL)
194 return (FILE *)ERROR_PTR("stream not opened", procName, NULL);
195 #else /* write to tmp file */
196 - L_INFO("work-around: writing to a temp file\n", procName);
198 if ((fp = fopenWriteWinTempfile()) == NULL)
199 return (FILE *)ERROR_PTR("tmpfile stream not opened", procName, NULL);