1 diff -u -r ../leptonica-1.74.1/src/bmpio.c ./src/bmpio.c
2 --- ../leptonica-1.74.1/src/bmpio.c 2016-12-02 20:42:42.000000000 +0100
3 +++ ./src/bmpio.c 2017-01-29 22:11:16.268072245 +0100
5 return ERROR_INT("stream not opened", procName, 1);
6 ret = pixWriteStreamBmp(fp, pix);
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);
12 diff -u -r ../leptonica-1.74.1/src/boxbasic.c ./src/boxbasic.c
13 --- ../leptonica-1.74.1/src/boxbasic.c 2016-12-02 20:42:49.000000000 +0100
14 +++ ./src/boxbasic.c 2017-01-29 22:11:16.276072146 +0100
16 return ERROR_INT("stream not opened", procName, 1);
17 ret = boxaaWriteStream(fp, baa);
19 - L_INFO("work-around: writing to a temp file\n", procName);
21 if ((fp = fopenWriteWinTempfile()) == NULL)
22 return ERROR_INT("tmpfile stream not opened", procName, 1);
24 return ERROR_INT("stream not opened", procName, 1);
25 ret = boxaWriteStream(fp, boxa);
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/colormap.c ./src/colormap.c
32 --- ../leptonica-1.74.1/src/colormap.c 2016-12-02 20:42:53.000000000 +0100
33 +++ ./src/colormap.c 2017-01-29 22:11:16.316071650 +0100
35 return ERROR_INT("stream not opened", procName, 1);
36 ret = pixcmapWriteStream(fp, cmap);
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);
42 diff -u -r ../leptonica-1.74.1/src/dewarp1.c ./src/dewarp1.c
43 --- ../leptonica-1.74.1/src/dewarp1.c 2016-12-02 20:42:57.000000000 +0100
44 +++ ./src/dewarp1.c 2017-01-29 22:11:16.352071204 +0100
46 return ERROR_INT("stream not opened", procName, 1);
47 ret = dewarpWriteStream(fp, dew);
49 - L_INFO("work-around: writing to a temp file\n", procName);
51 if ((fp = fopenWriteWinTempfile()) == NULL)
52 return ERROR_INT("tmpfile stream not opened", procName, 1);
54 return ERROR_INT("stream not opened", procName, 1);
55 ret = dewarpaWriteStream(fp, dewa);
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);
61 diff -u -r ../leptonica-1.74.1/src/fpix1.c ./src/fpix1.c
62 --- ../leptonica-1.74.1/src/fpix1.c 2016-12-02 20:43:01.000000000 +0100
63 +++ ./src/fpix1.c 2017-01-29 22:11:16.400070608 +0100
65 return ERROR_INT("stream not opened", procName, 1);
66 ret = fpixWriteStream(fp, fpix);
68 - L_INFO("work-around: writing to a temp file\n", procName);
70 if ((fp = fopenWriteWinTempfile()) == NULL)
71 return ERROR_INT("tmpfile stream not opened", procName, 1);
73 return ERROR_INT("stream not opened", procName, 1);
74 ret = dpixWriteStream(fp, dpix);
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/jp2kio.c ./src/jp2kio.c
81 --- ../leptonica-1.74.1/src/jp2kio.c 2016-12-02 20:43:11.000000000 +0100
82 +++ ./src/jp2kio.c 2017-01-29 22:11:16.424070311 +0100
84 return ERROR_INT("stream not opened", procName, 1);
85 ret = pixWriteStreamJp2k(fp, pix, quality, nlevels, hint, debug);
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/jpegio.c ./src/jpegio.c
92 --- ../leptonica-1.74.1/src/jpegio.c 2016-12-02 20:43:18.000000000 +0100
93 +++ ./src/jpegio.c 2017-01-29 22:11:16.428070261 +0100
95 return ERROR_INT("stream not opened", procName, 1);
96 ret = pixWriteStreamJpeg(fp, pix, quality, progressive);
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 diff -u -r ../leptonica-1.74.1/src/numabasic.c ./src/numabasic.c
103 --- ../leptonica-1.74.1/src/numabasic.c 2016-12-02 20:43:25.000000000 +0100
104 +++ ./src/numabasic.c 2017-01-29 22:11:16.444070062 +0100
105 @@ -1276,7 +1276,6 @@
106 return ERROR_INT("stream not opened", procName, 1);
107 ret = numaWriteStream(fp, na);
109 - L_INFO("work-around: writing to a temp file\n", procName);
111 if ((fp = fopenWriteWinTempfile()) == NULL)
112 return ERROR_INT("tmpfile stream not opened", procName, 1);
113 @@ -1962,7 +1961,6 @@
114 return ERROR_INT("stream not opened", procName, 1);
115 ret = numaaWriteStream(fp, naa);
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 diff -u -r ../leptonica-1.74.1/src/pixabasic.c ./src/pixabasic.c
122 --- ../leptonica-1.74.1/src/pixabasic.c 2016-12-02 20:43:29.000000000 +0100
123 +++ ./src/pixabasic.c 2017-01-29 22:11:16.488069517 +0100
124 @@ -2626,7 +2626,6 @@
125 return ERROR_INT("stream not opened", procName, 1);
126 ret = pixaWriteStream(fp, pixa);
128 - L_INFO("work-around: writing to a temp file\n", procName);
130 if ((fp = fopenWriteWinTempfile()) == NULL)
131 return ERROR_INT("tmpfile stream not opened", procName, 1);
132 @@ -2998,7 +2997,6 @@
133 return ERROR_INT("stream not opened", procName, 1);
134 ret = pixaaWriteStream(fp, paa);
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/pixcomp.c ./src/pixcomp.c
141 --- ../leptonica-1.74.1/src/pixcomp.c 2016-12-02 20:43:33.000000000 +0100
142 +++ ./src/pixcomp.c 2017-01-29 22:11:16.500069368 +0100
143 @@ -1841,7 +1841,6 @@
144 return ERROR_INT("stream not opened", procName, 1);
145 ret = pixacompWriteStream(fp, pixac);
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 diff -u -r ../leptonica-1.74.1/src/pngio.c ./src/pngio.c
152 --- ../leptonica-1.74.1/src/pngio.c 2016-12-02 20:43:37.000000000 +0100
153 +++ ./src/pngio.c 2017-01-29 22:11:16.508069269 +0100
154 @@ -1344,7 +1344,6 @@
155 return ERROR_INT("stream not opened", procName, 1);
156 ret = pixWriteStreamPng(fp, pix, gamma);
158 - L_INFO("work-around: writing to a temp file\n", procName);
160 if ((fp = fopenWriteWinTempfile()) == NULL)
161 return ERROR_INT("tmpfile stream not opened", procName, 1);
162 diff -u -r ../leptonica-1.74.1/src/pnmio.c ./src/pnmio.c
163 --- ../leptonica-1.74.1/src/pnmio.c 2016-12-27 19:30:34.000000000 +0100
164 +++ ./src/pnmio.c 2017-01-29 22:11:16.512069219 +0100
165 @@ -1179,7 +1179,6 @@
166 return ERROR_INT("stream not opened", procName, 1);
167 ret = pixWriteStreamPnm(fp, pix);
169 - L_INFO("work-around: writing to a temp file\n", procName);
171 if ((fp = fopenWriteWinTempfile()) == NULL)
172 return ERROR_INT("tmpfile stream not opened", procName, 1);
173 @@ -1234,7 +1233,6 @@
174 return ERROR_INT("stream not opened", procName, 1);
175 ret = pixWriteStreamPam(fp, pix);
177 - L_INFO("work-around: writing to a temp file\n", procName);
179 if ((fp = fopenWriteWinTempfile()) == NULL)
180 return ERROR_INT("tmpfile stream not opened", procName, 1);
181 diff -u -r ../leptonica-1.74.1/src/ptabasic.c ./src/ptabasic.c
182 --- ../leptonica-1.74.1/src/ptabasic.c 2016-12-02 20:43:49.000000000 +0100
183 +++ ./src/ptabasic.c 2017-01-29 22:11:16.520069120 +0100
185 return ERROR_INT("stream not opened", procName, 1);
186 ret = ptaWriteStream(fp, pta, type);
188 - L_INFO("work-around: writing to a temp file\n", procName);
190 if ((fp = fopenWriteWinTempfile()) == NULL)
191 return ERROR_INT("tmpfile stream not opened", procName, 1);
192 @@ -1463,7 +1462,6 @@
193 return ERROR_INT("stream not opened", procName, 1);
194 ret = ptaaWriteStream(fp, ptaa, type);
196 - L_INFO("work-around: writing to a temp file\n", procName);
198 if ((fp = fopenWriteWinTempfile()) == NULL)
199 return ERROR_INT("tmpfile stream not opened", procName, 1);
200 diff -u -r ../leptonica-1.74.1/src/recogbasic.c ./src/recogbasic.c
201 --- ../leptonica-1.74.1/src/recogbasic.c 2016-12-02 20:43:53.000000000 +0100
202 +++ ./src/recogbasic.c 2017-01-29 22:11:16.532068971 +0100
203 @@ -1306,7 +1306,6 @@
204 return ERROR_INT("stream not opened", procName, 1);
205 ret = recogaWriteStream(fp, recoga);
207 - L_INFO("work-around: writing to a temp file\n", procName);
209 if ((fp = fopenWriteWinTempfile()) == NULL)
210 return ERROR_INT("tmpfile stream not opened", procName, 1);
211 @@ -1608,7 +1607,6 @@
212 return ERROR_INT("stream not opened", procName, 1);
213 ret = recogWriteStream(fp, recog);
215 - L_INFO("work-around: writing to a temp file\n", procName);
217 if ((fp = fopenWriteWinTempfile()) == NULL)
218 return ERROR_INT("tmpfile stream not opened", procName, 1);
219 diff -u -r ../leptonica-1.74.1/src/sarray1.c ./src/sarray1.c
220 --- ../leptonica-1.74.1/src/sarray1.c 2016-12-21 21:11:34.000000000 +0100
221 +++ ./src/sarray1.c 2017-01-29 22:11:16.552068723 +0100
222 @@ -1567,7 +1567,6 @@
223 return ERROR_INT("stream not opened", procName, 1);
224 ret = sarrayWriteStream(fp, sa);
226 - L_INFO("work-around: writing to a temp file\n", procName);
228 if ((fp = fopenWriteWinTempfile()) == NULL)
229 return ERROR_INT("tmpfile stream not opened", procName, 1);
230 diff -u -r ../leptonica-1.74.1/src/utils2.c ./src/utils2.c
231 --- ../leptonica-1.74.1/src/utils2.c 2016-12-21 21:11:53.000000000 +0100
232 +++ ./src/utils2.c 2017-01-29 22:11:16.584068326 +0100
233 @@ -1635,7 +1635,6 @@
234 if ((fp = fmemopen((void *)data, size, "rb")) == NULL)
235 return (FILE *)ERROR_PTR("stream not opened", procName, NULL);
236 #else /* write to tmp file */
237 - L_INFO("work-around: writing to a temp file\n", procName);
239 if ((fp = fopenWriteWinTempfile()) == NULL)
240 return (FILE *)ERROR_PTR("tmpfile stream not opened", procName, NULL);