]>
Commit | Line | Data |
---|---|---|
c885e705 JB |
1 | --- wxWidgets-2.8.12/src/common/appbase.cpp.orig 2011-03-22 12:59:40.000000000 +0100 |
2 | +++ wxWidgets-2.8.12/src/common/appbase.cpp 2012-09-30 08:02:00.981833952 +0200 | |
3 | @@ -424,7 +424,7 @@ | |
4 | msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."), | |
5 | lib.c_str(), progName.c_str(), prog.c_str()); | |
6 | ||
7 | - wxLogFatalError(msg.c_str()); | |
8 | + wxLogFatalError("%s", msg.c_str()); | |
9 | ||
10 | // normally wxLogFatalError doesn't return | |
11 | return false; | |
47151347 JB |
12 | --- wxWidgets-2.8.12/src/common/fs_mem.cpp.orig 2011-03-22 12:59:41.000000000 +0100 |
13 | +++ wxWidgets-2.8.12/src/common/fs_mem.cpp 2012-09-30 10:11:49.745004943 +0200 | |
14 | @@ -174,9 +174,7 @@ | |
15 | ||
16 | if (m_Hash -> Get(filename) != NULL) | |
17 | { | |
18 | - wxString s; | |
19 | - s.Printf(_("Memory VFS already contains file '%s'!"), filename.c_str()); | |
20 | - wxLogError(s); | |
21 | + wxLogError(_("Memory VFS already contains file '%s'!"), filename.c_str()); | |
22 | return false; | |
23 | } | |
24 | else | |
25 | @@ -226,9 +224,7 @@ | |
26 | if (m_Hash == NULL || | |
27 | m_Hash -> Get(filename) == NULL) | |
28 | { | |
29 | - wxString s; | |
30 | - s.Printf(_("Trying to remove file '%s' from memory VFS, but it is not loaded!"), filename.c_str()); | |
31 | - wxLogError(s); | |
32 | + wxLogError(_("Trying to remove file '%s' from memory VFS, but it is not loaded!"), filename.c_str()); | |
33 | } | |
34 | ||
35 | else | |
91433879 JB |
36 | @@ -261,7 +261,7 @@ |
37 | wxString s; | |
38 | s.Printf(_("Failed to store image '%s' to memory VFS!"), filename.c_str()); | |
39 | wxPrintf(wxT("'%s'\n"), s.c_str()); | |
40 | - wxLogError(s); | |
f7afc4c3 | 41 | + wxLogError("%s", s.c_str()); |
91433879 JB |
42 | } |
43 | } | |
44 | ||
b44bd5fb JB |
45 | --- wxWidgets-2.8.12/src/common/file.cpp.orig 2011-03-22 12:59:40.000000000 +0100 |
46 | +++ wxWidgets-2.8.12/src/common/file.cpp 2012-09-30 08:19:02.785145988 +0200 | |
47 | @@ -513,7 +513,7 @@ | |
48 | if ( chmod( (const char*) m_strTemp.fn_str(), mode) == -1 ) | |
49 | { | |
50 | #ifndef __OS2__ | |
51 | - wxLogSysError(_("Failed to set temporary file permissions")); | |
52 | + wxLogSysError("%s", _("Failed to set temporary file permissions")); | |
53 | #endif | |
54 | } | |
55 | #endif // Unix | |
56 | --- wxWidgets-2.8.12/src/common/fileconf.cpp.orig 2011-03-22 12:59:41.000000000 +0100 | |
57 | +++ wxWidgets-2.8.12/src/common/fileconf.cpp 2012-09-30 08:20:45.761810510 +0200 | |
58 | @@ -508,7 +508,7 @@ | |
59 | ||
60 | if ( err != wxSTREAM_NO_ERROR && err != wxSTREAM_EOF ) | |
61 | { | |
62 | - wxLogError(_("Error reading config options.")); | |
63 | + wxLogError("%s", _("Error reading config options.")); | |
64 | break; | |
65 | } | |
66 | } | |
67 | @@ -1043,7 +1043,7 @@ | |
68 | ||
69 | if ( !file.IsOpened() ) | |
70 | { | |
71 | - wxLogError(_("can't open user configuration file.")); | |
72 | + wxLogError("%s", _("can't open user configuration file.")); | |
73 | return false; | |
74 | } | |
75 | ||
76 | @@ -1057,13 +1057,13 @@ | |
77 | ||
78 | if ( !file.Write(filetext, *m_conv) ) | |
79 | { | |
80 | - wxLogError(_("can't write user configuration file.")); | |
81 | + wxLogError("%s", _("can't write user configuration file.")); | |
82 | return false; | |
83 | } | |
84 | ||
85 | if ( !file.Commit() ) | |
86 | { | |
87 | - wxLogError(_("Failed to update user configuration file.")); | |
88 | + wxLogError("%s", _("Failed to update user configuration file.")); | |
89 | ||
90 | return false; | |
91 | } | |
92 | @@ -1090,7 +1090,7 @@ | |
93 | wxCharBuffer buf(line.mb_str(conv)); | |
94 | if ( !os.Write(buf, strlen(buf)) ) | |
95 | { | |
96 | - wxLogError(_("Error saving user configuration data.")); | |
97 | + wxLogError("%s", _("Error saving user configuration data.")); | |
98 | ||
99 | return false; | |
100 | } | |
8de26838 JB |
101 | --- wxWidgets-2.8.12/src/common/filename.cpp.orig 2011-03-22 12:59:41.000000000 +0100 |
102 | +++ wxWidgets-2.8.12/src/common/filename.cpp 2012-09-30 08:26:13.781803673 +0200 | |
103 | @@ -859,7 +859,7 @@ | |
104 | ||
105 | if ( path.empty() ) | |
106 | { | |
107 | - wxLogSysError(_("Failed to create a temporary file name")); | |
108 | + wxLogSysError("%s", _("Failed to create a temporary file name")); | |
109 | } | |
110 | else | |
111 | { | |
112 | @@ -894,7 +894,7 @@ | |
113 | // fails, though of course it should be protected against | |
114 | // possible infinite looping too. | |
115 | ||
116 | - wxLogError(_("Failed to open temporary file.")); | |
117 | + wxLogError("%s", _("Failed to open temporary file.")); | |
118 | ||
119 | path.clear(); | |
120 | } | |
84f99935 JB |
121 | --- wxWidgets-2.8.12/src/common/filefn.cpp.orig 2011-03-22 12:59:41.000000000 +0100 |
122 | +++ wxWidgets-2.8.12/src/common/filefn.cpp 2012-09-30 09:03:28.965090416 +0200 | |
123 | @@ -1513,7 +1513,7 @@ | |
124 | ||
125 | if ( !ok ) | |
126 | { | |
127 | - wxLogSysError(_("Failed to get the working directory")); | |
128 | + wxLogSysError("%s", _("Failed to get the working directory")); | |
129 | ||
130 | // VZ: the old code used to return "." on error which didn't make any | |
131 | // sense at all to me - empty string is a better error indicator | |
3593df53 JB |
132 | --- wxWidgets-2.8.12/src/common/init.cpp.orig 2011-03-22 12:59:41.000000000 +0100 |
133 | +++ wxWidgets-2.8.12/src/common/init.cpp 2012-09-30 09:06:52.951752832 +0200 | |
134 | @@ -237,7 +237,7 @@ | |
135 | ||
136 | if ( !wxModule::InitializeModules() ) | |
137 | { | |
138 | - wxLogError(_("Initialization failed in post init, aborting.")); | |
139 | + wxLogError("%s", _("Initialization failed in post init, aborting.")); | |
140 | return false; | |
141 | } | |
142 | ||
1b84f1e6 JB |
143 | --- wxWidgets-2.8.12/src/common/stopwatch.cpp.orig 2011-03-22 12:59:42.000000000 +0100 |
144 | +++ wxWidgets-2.8.12/src/common/stopwatch.cpp 2012-09-30 09:13:41.768410978 +0200 | |
145 | @@ -228,7 +228,7 @@ | |
146 | if (( t0 != (time_t)-1 ) && ( t1 != (time_t)-1 )) | |
147 | return (long)difftime(t1, t0) + (60 * 60 * 24 * 4); | |
148 | ||
149 | - wxLogSysError(_("Failed to get the local system time")); | |
150 | + wxLogSysError("%s", _("Failed to get the local system time")); | |
151 | return -1; | |
152 | } | |
153 | ||
154 | @@ -286,7 +286,7 @@ | |
155 | } | |
156 | else | |
157 | { | |
158 | - wxLogError(_("wxGetTimeOfDay failed.")); | |
4b62fc1e | 159 | + wxLogError("%s", _("wxGetTimeOfDay failed.")); |
1b84f1e6 JB |
160 | return 0; |
161 | } | |
162 | #elif defined(HAVE_FTIME) | |
fd5caa00 JB |
163 | --- wxWidgets-2.8.12/src/common/tarstrm.cpp.orig 2011-03-22 12:59:42.000000000 +0100 |
164 | +++ wxWidgets-2.8.12/src/common/tarstrm.cpp 2012-09-30 09:40:58.075043539 +0200 | |
165 | @@ -790,7 +790,7 @@ | |
166 | while (!done) { | |
167 | m_hdr->Read(*m_parent_i_stream); | |
168 | if (m_parent_i_stream->Eof()) | |
169 | - wxLogError(_("incomplete header block in tar")); | |
170 | + wxLogError("%s", _("incomplete header block in tar")); | |
171 | if (!*m_parent_i_stream) | |
172 | return wxSTREAM_READ_ERROR; | |
173 | m_offset += TAR_BLOCKSIZE; | |
174 | @@ -813,7 +813,7 @@ | |
175 | if (m_sumType == SUM_SIGNED) | |
176 | ok = chksum == m_hdr->Sum(true); | |
177 | if (!ok) { | |
178 | - wxLogError(_("checksum failure reading tar header block")); | |
179 | + wxLogError("%s", _("checksum failure reading tar header block")); | |
180 | return wxSTREAM_READ_ERROR; | |
181 | } | |
182 | ||
183 | @@ -986,7 +986,7 @@ | |
184 | } | |
185 | ||
186 | if (!ok || recPos < len || size != lastread) { | |
187 | - wxLogWarning(_("invalid data in extended tar header")); | |
188 | + wxLogWarning("%s", _("invalid data in extended tar header")); | |
189 | return false; | |
190 | } | |
191 | ||
192 | @@ -996,7 +996,7 @@ | |
193 | wxFileOffset wxTarInputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode) | |
194 | { | |
195 | if (!IsOpened()) { | |
196 | - wxLogError(_("tar entry not open")); | |
197 | + wxLogError("%s", _("tar entry not open")); | |
198 | m_lasterror = wxSTREAM_READ_ERROR; | |
199 | } | |
200 | if (!IsOk()) | |
201 | @@ -1018,7 +1018,7 @@ | |
202 | size_t wxTarInputStream::OnSysRead(void *buffer, size_t size) | |
203 | { | |
204 | if (!IsOpened()) { | |
205 | - wxLogError(_("tar entry not open")); | |
206 | + wxLogError("%s", _("tar entry not open")); | |
207 | m_lasterror = wxSTREAM_READ_ERROR; | |
208 | } | |
209 | if (!IsOk() || !size) | |
210 | @@ -1037,7 +1037,7 @@ | |
211 | } else if (!m_parent_i_stream->IsOk()) { | |
212 | // any other error will have been reported by the underlying stream | |
213 | if (m_parent_i_stream->Eof()) | |
214 | - wxLogError(_("unexpected end of file")); | |
215 | + wxLogError("%s", _("unexpected end of file")); | |
216 | m_lasterror = wxSTREAM_READ_ERROR; | |
217 | } | |
218 | ||
219 | @@ -1371,7 +1371,7 @@ | |
220 | } | |
221 | ||
222 | if (sizePos == wxInvalidOffset || !m_hdr->SetOctal(TAR_SIZE, m_pos)) { | |
223 | - wxLogError(_("incorrect size given for tar entry")); | |
224 | + wxLogError("%s", _("incorrect size given for tar entry")); | |
225 | m_lasterror = wxSTREAM_WRITE_ERROR; | |
226 | return false; | |
227 | } | |
228 | @@ -1492,7 +1492,7 @@ | |
229 | wxFileOffset wxTarOutputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode) | |
230 | { | |
231 | if (!IsOpened()) { | |
232 | - wxLogError(_("tar entry not open")); | |
233 | + wxLogError("%s", _("tar entry not open")); | |
234 | m_lasterror = wxSTREAM_WRITE_ERROR; | |
235 | } | |
236 | if (!IsOk() || m_datapos == wxInvalidOffset) | |
237 | @@ -1514,7 +1514,7 @@ | |
238 | size_t wxTarOutputStream::OnSysWrite(const void *buffer, size_t size) | |
239 | { | |
240 | if (!IsOpened()) { | |
241 | - wxLogError(_("tar entry not open")); | |
242 | + wxLogError("%s", _("tar entry not open")); | |
243 | m_lasterror = wxSTREAM_WRITE_ERROR; | |
244 | } | |
245 | if (!IsOk() || !size) | |
bdb99308 JB |
246 | --- wxWidgets-2.8.12/src/common/zstream.cpp.orig 2011-03-22 12:59:43.000000000 +0100 |
247 | +++ wxWidgets-2.8.12/src/common/zstream.cpp 2012-09-30 09:47:40.141701824 +0200 | |
248 | @@ -146,7 +146,7 @@ | |
249 | flags = wxZLIB_ZLIB; | |
250 | } | |
251 | else { | |
252 | - wxLogError(_("Gzip not supported by this version of zlib")); | |
253 | + wxLogError("%s", _("Gzip not supported by this version of zlib")); | |
254 | m_lasterror = wxSTREAM_READ_ERROR; | |
255 | return; | |
256 | } | |
257 | @@ -173,7 +173,7 @@ | |
258 | } | |
259 | } | |
260 | ||
261 | - wxLogError(_("Can't initialize zlib inflate stream.")); | |
262 | + wxLogError("%s", _("Can't initialize zlib inflate stream.")); | |
263 | m_lasterror = wxSTREAM_READ_ERROR; | |
264 | } | |
265 | ||
266 | @@ -236,7 +236,7 @@ | |
267 | m_lasterror = wxSTREAM_EOF; | |
268 | else | |
269 | #endif | |
270 | - wxLogError(_("Can't read inflate stream: unexpected EOF in underlying stream.")); | |
271 | + wxLogError("%s", _("Can't read inflate stream: unexpected EOF in underlying stream.")); | |
272 | break; | |
273 | ||
274 | default: | |
275 | @@ -299,7 +299,7 @@ | |
276 | ||
277 | // if gzip is asked for but not supported... | |
278 | if (flags == wxZLIB_GZIP && !CanHandleGZip()) { | |
279 | - wxLogError(_("Gzip not supported by this version of zlib")); | |
280 | + wxLogError("%s", _("Gzip not supported by this version of zlib")); | |
281 | m_lasterror = wxSTREAM_WRITE_ERROR; | |
282 | return; | |
283 | } | |
284 | @@ -327,7 +327,7 @@ | |
285 | } | |
286 | } | |
287 | ||
288 | - wxLogError(_("Can't initialize zlib deflate stream.")); | |
289 | + wxLogError("%s", _("Can't initialize zlib deflate stream.")); | |
290 | m_lasterror = wxSTREAM_WRITE_ERROR; | |
291 | } | |
292 | ||
293 | --- wxWidgets-2.8.12/src/common/zipstrm.cpp.orig 2011-03-22 12:59:42.000000000 +0100 | |
294 | +++ wxWidgets-2.8.12/src/common/zipstrm.cpp 2012-09-30 09:49:19.005033098 +0200 | |
295 | @@ -525,7 +525,7 @@ | |
296 | m_parent_o_stream = &stream; | |
297 | ||
298 | if (deflateReset(m_deflate) != Z_OK) { | |
299 | - wxLogError(_("can't re-initialize zlib deflate stream")); | |
300 | + wxLogError("%s", _("can't re-initialize zlib deflate stream")); | |
301 | m_lasterror = wxSTREAM_WRITE_ERROR; | |
302 | return false; | |
303 | } | |
304 | @@ -550,7 +550,7 @@ | |
305 | m_parent_i_stream = &stream; | |
306 | ||
307 | if (inflateReset(m_inflate) != Z_OK) { | |
308 | - wxLogError(_("can't re-initialize zlib inflate stream")); | |
309 | + wxLogError("%s", _("can't re-initialize zlib inflate stream")); | |
310 | m_lasterror = wxSTREAM_READ_ERROR; | |
311 | return false; | |
312 | } | |
313 | @@ -1269,7 +1269,7 @@ | |
314 | ||
315 | if (m_DiskNumber != 0 || m_StartDisk != 0 || | |
316 | m_EntriesHere != m_TotalEntries) | |
317 | - wxLogWarning(_("assuming this is a multi-part zip concatenated")); | |
318 | + wxLogWarning("%s", _("assuming this is a multi-part zip concatenated")); | |
319 | ||
320 | return true; | |
321 | } | |
322 | @@ -1441,7 +1441,7 @@ | |
323 | // failed, so either this is a non-seekable stream (ok), or not a zip | |
324 | if (m_parentSeekable) { | |
325 | m_lasterror = wxSTREAM_READ_ERROR; | |
326 | - wxLogError(_("invalid zip file")); | |
327 | + wxLogError("%s", _("invalid zip file")); | |
328 | return false; | |
329 | } | |
330 | else { | |
331 | @@ -1484,7 +1484,7 @@ | |
332 | return true; | |
333 | } | |
334 | ||
335 | - wxLogError(_("can't find central directory in zip")); | |
336 | + wxLogError("%s", _("can't find central directory in zip")); | |
337 | m_lasterror = wxSTREAM_READ_ERROR; | |
338 | return false; | |
339 | } | |
340 | @@ -1570,7 +1570,7 @@ | |
341 | return wxSTREAM_EOF; | |
342 | ||
343 | if (m_signature != CENTRAL_MAGIC) { | |
344 | - wxLogError(_("error reading zip central directory")); | |
345 | + wxLogError("%s", _("error reading zip central directory")); | |
346 | return wxSTREAM_READ_ERROR; | |
347 | } | |
348 | ||
349 | @@ -1661,7 +1661,7 @@ | |
350 | } | |
351 | } | |
352 | ||
353 | - wxLogError(_("error reading zip local header")); | |
354 | + wxLogError("%s", _("error reading zip local header")); | |
355 | return wxSTREAM_READ_ERROR; | |
356 | } | |
357 | ||
358 | @@ -1709,7 +1709,7 @@ | |
359 | == wxInvalidOffset) | |
360 | return false; | |
361 | if (ReadSignature() != LOCAL_MAGIC) { | |
362 | - wxLogError(_("bad zipfile offset to entry")); | |
363 | + wxLogError("%s", _("bad zipfile offset to entry")); | |
364 | return false; | |
365 | } | |
366 | } | |
367 | @@ -1776,7 +1776,7 @@ | |
368 | switch (m_entry.GetMethod()) { | |
369 | case wxZIP_METHOD_STORE: | |
370 | if (m_entry.GetSize() == wxInvalidOffset) { | |
371 | - wxLogError(_("stored file length not in Zip header")); | |
372 | + wxLogError("%s", _("stored file length not in Zip header")); | |
373 | break; | |
374 | } | |
375 | m_store->Open(m_entry.GetSize()); | |
376 | @@ -1790,7 +1790,7 @@ | |
377 | return m_inflate; | |
378 | ||
379 | default: | |
380 | - wxLogError(_("unsupported Zip compression method")); | |
381 | + wxLogError("%s", _("unsupported Zip compression method")); | |
382 | } | |
383 | ||
384 | return NULL; | |
385 | @@ -2171,7 +2171,7 @@ | |
386 | } | |
387 | ||
388 | default: | |
389 | - wxLogError(_("unsupported Zip compression method")); | |
390 | + wxLogError("%s", _("unsupported Zip compression method")); | |
391 | } | |
392 | ||
393 | return NULL; | |
0e6feeaf JB |
394 | --- wxWidgets-2.8.12/include/wx/unix/pipe.h.orig 2011-03-22 13:01:28.000000000 +0100 |
395 | +++ wxWidgets-2.8.12/include/wx/unix/pipe.h 2012-09-30 09:52:41.701695539 +0200 | |
396 | @@ -44,7 +44,7 @@ | |
397 | { | |
398 | if ( pipe(m_fds) == -1 ) | |
399 | { | |
400 | - wxLogSysError(_("Pipe creation failed")); | |
401 | + wxLogSysError("%s", _("Pipe creation failed")); | |
402 | ||
403 | return FALSE; | |
404 | } | |
405 | --- wxWidgets-2.8.12/src/unix/baseunix.cpp.orig 2011-03-22 13:01:28.000000000 +0100 | |
406 | +++ wxWidgets-2.8.12/src/unix/baseunix.cpp 2012-09-30 09:53:20.938361388 +0200 | |
407 | @@ -75,7 +75,7 @@ | |
408 | int exitcode = 0; | |
409 | if ( waitpid(execData.pid, &exitcode, 0) == -1 || !WIFEXITED(exitcode) ) | |
410 | { | |
411 | - wxLogSysError(_("Waiting for subprocess termination failed")); | |
412 | + wxLogSysError("%s", _("Waiting for subprocess termination failed")); | |
413 | } | |
414 | ||
415 | return exitcode; | |
0606d3fc JB |
416 | --- wxWidgets-2.8.12/src/unix/snglinst.cpp.orig 2011-03-22 13:01:28.000000000 +0100 |
417 | +++ wxWidgets-2.8.12/src/unix/snglinst.cpp 2012-09-30 10:01:41.101684296 +0200 | |
418 | @@ -267,7 +267,7 @@ | |
419 | // another process managed to open and lock the file and terminate | |
420 | // (erasing it) before we got here, but this should happen so | |
421 | // rarely in practice that we don't care | |
422 | - wxLogError(_("Failed to access lock file.")); | |
423 | + wxLogError("%s", _("Failed to access lock file.")); | |
424 | ||
425 | return false; | |
426 | } | |
427 | @@ -276,7 +276,7 @@ | |
428 | ssize_t count = file.Read(buf, WXSIZEOF(buf)); | |
429 | if ( count == wxInvalidOffset ) | |
430 | { | |
431 | - wxLogError(_("Failed to read PID from lock file.")); | |
432 | + wxLogError("%s", _("Failed to read PID from lock file.")); | |
433 | } | |
434 | else | |
435 | { | |
81a9b85a JB |
436 | --- wxWidgets-2.8.12/src/unix/threadpsx.cpp.orig 2011-03-22 13:01:28.000000000 +0100 |
437 | +++ wxWidgets-2.8.12/src/unix/threadpsx.cpp 2012-09-30 10:06:25.185011707 +0200 | |
438 | @@ -729,7 +729,7 @@ | |
439 | int rc = pthread_setspecific(gs_keySelf, thread); | |
440 | if ( rc != 0 ) | |
441 | { | |
442 | - wxLogSysError(rc, _("Cannot start thread: error writing TLS")); | |
443 | + wxLogSysError(rc, "%s", _("Cannot start thread: error writing TLS")); | |
444 | ||
445 | return (void *)-1; | |
446 | } | |
447 | @@ -907,7 +907,7 @@ | |
448 | // wxLogDebug: it is possible to bring the system to its knees | |
449 | // by creating too many threads and not joining them quite | |
450 | // easily | |
451 | - wxLogError(_("Failed to join a thread, potential memory leak detected - please restart the program")); | |
452 | + wxLogError("%s", _("Failed to join a thread, potential memory leak detected - please restart the program")); | |
453 | } | |
454 | ||
455 | m_shouldBeJoined = false; | |
456 | @@ -1106,7 +1106,7 @@ | |
457 | int policy; | |
458 | if ( pthread_attr_getschedpolicy(&attr, &policy) != 0 ) | |
459 | { | |
460 | - wxLogError(_("Cannot retrieve thread scheduling policy.")); | |
461 | + wxLogError("%s", _("Cannot retrieve thread scheduling policy.")); | |
462 | } | |
463 | ||
464 | #ifdef __VMS__ | |
465 | @@ -1133,7 +1133,7 @@ | |
466 | if ( prio != WXTHREAD_DEFAULT_PRIORITY ) | |
467 | { | |
468 | // notify the programmer that this doesn't work here | |
469 | - wxLogWarning(_("Thread priority setting is ignored.")); | |
470 | + wxLogWarning("%s", _("Thread priority setting is ignored.")); | |
471 | } | |
472 | //else: we have default priority, so don't complain | |
473 | ||
474 | @@ -1433,7 +1433,7 @@ | |
475 | if ( pthread_cancel(m_internal->GetId()) != 0 ) | |
476 | #endif // HAVE_PTHREAD_CANCEL | |
477 | { | |
478 | - wxLogError(_("Failed to terminate a thread.")); | |
479 | + wxLogError("%s", _("Failed to terminate a thread.")); | |
480 | ||
481 | return wxTHREAD_MISC_ERROR; | |
482 | } | |
483 | @@ -1615,7 +1615,7 @@ | |
484 | int rc = pthread_key_create(&gs_keySelf, NULL /* dtor function */); | |
485 | if ( rc != 0 ) | |
486 | { | |
487 | - wxLogSysError(rc, _("Thread module initialization failed: failed to create thread key")); | |
488 | + wxLogSysError(rc, "%s", _("Thread module initialization failed: failed to create thread key")); | |
489 | ||
490 | return false; | |
491 | } | |
feef0db8 JB |
492 | --- wxWidgets-2.8.12/src/common/ftp.cpp.orig 2011-03-22 12:59:41.000000000 +0100 |
493 | +++ wxWidgets-2.8.12/src/common/ftp.cpp 2012-09-30 10:18:44.061662974 +0200 | |
494 | @@ -628,7 +628,7 @@ | |
495 | if ( !sockSrv->WaitForAccept() ) | |
496 | { | |
497 | m_lastError = wxPROTO_CONNERR; | |
498 | - wxLogError(_("Timeout while waiting for FTP server to connect, try passive mode.")); | |
499 | + wxLogError("%s", _("Timeout while waiting for FTP server to connect, try passive mode.")); | |
500 | delete sock; | |
501 | sock = NULL; | |
502 | } | |
503 | @@ -689,7 +689,7 @@ | |
504 | { | |
505 | m_lastError = wxPROTO_PROTERR; | |
506 | delete sockSrv; | |
507 | - wxLogError(_("The FTP server doesn't support the PORT command.")); | |
508 | + wxLogError("%s", _("The FTP server doesn't support the PORT command.")); | |
509 | return NULL; | |
510 | } | |
511 | ||
512 | @@ -701,7 +701,7 @@ | |
513 | { | |
514 | if ( !DoSimpleCommand(_T("PASV")) ) | |
515 | { | |
516 | - wxLogError(_("The FTP server doesn't support passive mode.")); | |
517 | + wxLogError("%s", _("The FTP server doesn't support passive mode.")); | |
518 | return NULL; | |
519 | } | |
520 | ||
fb5aa3ae JB |
521 | --- wxWidgets-2.8.12/src/unix/utilsunx.cpp.orig 2011-03-22 13:01:28.000000000 +0100 |
522 | +++ wxWidgets-2.8.12/src/unix/utilsunx.cpp 2012-09-30 10:28:09.194984528 +0200 | |
523 | @@ -432,7 +432,7 @@ | |
524 | switch ( select(fd + 1, &readfds, NULL, NULL, &tv) ) | |
525 | { | |
526 | case -1: | |
527 | - wxLogSysError(_("Impossible to get child process input")); | |
528 | + wxLogSysError("%s", _("Impossible to get child process input")); | |
529 | // fall through | |
530 | ||
531 | case 0: | |
532 | @@ -543,7 +543,7 @@ | |
533 | #endif | |
534 | if ( pid == -1 ) // error? | |
535 | { | |
536 | - wxLogSysError( _("Fork failed") ); | |
537 | + wxLogSysError("%s", _("Fork failed") ); | |
538 | ||
539 | ARGS_CLEANUP; | |
540 | ||
541 | @@ -596,7 +596,7 @@ | |
542 | dup2(pipeOut[wxPipe::Write], STDOUT_FILENO) == -1 || | |
543 | dup2(pipeErr[wxPipe::Write], STDERR_FILENO) == -1 ) | |
544 | { | |
545 | - wxLogSysError(_("Failed to redirect child process input/output")); | |
546 | + wxLogSysError("%s", _("Failed to redirect child process input/output")); | |
547 | } | |
548 | ||
549 | pipeIn.Close(); | |
550 | @@ -806,7 +806,7 @@ | |
551 | ||
552 | if ( !ok ) | |
553 | { | |
554 | - wxLogSysError(_("Cannot get the hostname")); | |
555 | + wxLogSysError("%s", _("Cannot get the hostname")); | |
556 | } | |
557 | ||
558 | return ok; | |
abcd1fc9 JB |
559 | @@ -842,7 +842,7 @@ |
560 | struct hostent *host = gethostbyname(wxSafeConvertWX2MB(buf)); | |
561 | if ( !host ) | |
562 | { | |
563 | - wxLogSysError(_("Cannot get the official hostname")); | |
564 | + wxLogSysError("%s", _("Cannot get the official hostname")); | |
565 | ||
566 | ok = false; | |
567 | } | |
bec58ce9 JB |
568 | --- wxWidgets-2.8.12/src/common/sckaddr.cpp.orig 2011-03-22 12:59:42.000000000 +0100 |
569 | +++ wxWidgets-2.8.12/src/common/sckaddr.cpp 2012-09-30 10:54:15.261618553 +0200 | |
570 | @@ -141,7 +141,7 @@ | |
571 | // Some people are sometimes fool. | |
572 | if (name.empty()) | |
573 | { | |
574 | - wxLogWarning( _("Trying to solve a NULL hostname: giving up") ); | |
575 | + wxLogWarning("%s", _("Trying to solve a NULL hostname: giving up") ); | |
576 | return false; | |
577 | } | |
578 | m_origHostname = name; | |
bc1a777f JB |
579 | --- wxWidgets-2.8.12/src/common/socket.cpp.orig 2011-03-22 12:59:42.000000000 +0100 |
580 | +++ wxWidgets-2.8.12/src/common/socket.cpp 2012-09-30 10:58:04.798280436 +0200 | |
581 | @@ -409,7 +409,7 @@ | |
582 | ||
583 | if (sig != 0xfeeddead) | |
584 | { | |
585 | - wxLogWarning(_("wxSocket: invalid signature in ReadMsg.")); | |
586 | + wxLogWarning("%s", _("wxSocket: invalid signature in ReadMsg.")); | |
587 | goto exit; | |
588 | } | |
589 | ||
590 | @@ -463,7 +463,7 @@ | |
591 | ||
592 | if (sig != 0xdeadfeed) | |
593 | { | |
594 | - wxLogWarning(_("wxSocket: invalid signature in ReadMsg.")); | |
595 | + wxLogWarning("%s", _("wxSocket: invalid signature in ReadMsg.")); | |
596 | goto exit; | |
597 | } | |
598 | ||
599 | @@ -990,7 +990,7 @@ | |
600 | case GSOCK_CONNECTION: flag = GSOCK_CONNECTION_FLAG; break; | |
601 | case GSOCK_LOST: flag = GSOCK_LOST_FLAG; break; | |
602 | default: | |
603 | - wxLogWarning(_("wxSocket: unknown event!.")); | |
604 | + wxLogWarning("%s", _("wxSocket: unknown event!.")); | |
605 | return; | |
606 | } | |
607 |