]> git.pld-linux.org Git - packages/wxWidgets.git/blob - wxWidgets-format.patch
- fixes
[packages/wxWidgets.git] / wxWidgets-format.patch
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;
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
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);
41 +        wxLogError("%s", s.c_str());
42      }
43  }
44  
45 --- wxWidgets-2.8.12/utils/wxrc/wxrc.cpp.orig   2011-03-22 13:00:31.000000000 +0100
46 +++ wxWidgets-2.8.12/utils/wxrc/wxrc.cpp        2012-10-01 19:13:05.222527207 +0200
47 @@ -391,13 +391,13 @@
48      for (size_t i = 0; i < parFiles.Count(); i++)
49      {
50          if (flagVerbose)
51 -            wxPrintf(wxT("processing ") + parFiles[i] +  wxT("...\n"));
52 +            wxPrintf("processing %s...\n", parFiles[i].c_str());
53  
54          wxXmlDocument doc;
55  
56          if (!doc.Load(parFiles[i]))
57          {
58 -            wxLogError(wxT("Error parsing file ") + parFiles[i]);
59 +            wxLogError("Error parsing file %s", parFiles[i].c_str());
60              retCode = 1;
61              continue;
62          }
63 @@ -497,7 +497,7 @@
64                  fullname = inputPath + wxFILE_SEP_PATH + n->GetContent();
65  
66              if (flagVerbose)
67 -                wxPrintf(wxT("adding     ") + fullname +  wxT("...\n"));
68 +                wxPrintf("adding     %s...\n", fullname.c_str());
69  
70              wxString filename = GetInternalFileName(n->GetContent(), flist);
71              n->SetContent(filename);
72 @@ -537,7 +537,7 @@
73      files.RemoveLast();
74  
75      if (flagVerbose)
76 -        wxPrintf(wxT("compressing ") + parOutput +  wxT("...\n"));
77 +        wxPrintf("compressing %s...\n", parOutput.c_str());
78  
79      wxString cwd = wxGetCwd();
80      wxSetWorkingDirectory(parOutputPath);
81 @@ -604,7 +604,7 @@
82      size_t i;
83  
84      if (flagVerbose)
85 -        wxPrintf(wxT("creating C++ source file ") + parOutput +  wxT("...\n"));
86 +        wxPrintf("creating C++ source file %s...\n", parOutput.c_str());
87  
88      file.Write(wxT("")
89  wxT("//\n")
90 @@ -764,7 +764,7 @@
91      size_t i;
92  
93      if (flagVerbose)
94 -        wxPrintf(wxT("creating Python source file ") + parOutput +  wxT("...\n"));
95 +        wxPrintf("creating Python source file %s...\n", parOutput.c_str());
96  
97      file.Write(
98         wxT("#\n")
99 @@ -839,12 +839,12 @@
100      for (size_t i = 0; i < parFiles.Count(); i++)
101      {
102          if (flagVerbose)
103 -            wxPrintf(wxT("processing ") + parFiles[i] +  wxT("...\n"));
104 +            wxPrintf("processing %s...", parFiles[i].c_str());
105  
106          wxXmlDocument doc;
107          if (!doc.Load(parFiles[i]))
108          {
109 -            wxLogError(wxT("Error parsing file ") + parFiles[i]);
110 +            wxLogError("Error parsing file %s", parFiles[i].c_str());
111              retCode = 1;
112              continue;
113          }
114 --- wxWidgets-2.8.12/src/common/file.cpp.orig   2011-03-22 12:59:40.000000000 +0100
115 +++ wxWidgets-2.8.12/src/common/file.cpp        2012-09-30 08:19:02.785145988 +0200
116 @@ -513,7 +513,7 @@
117      if ( chmod( (const char*) m_strTemp.fn_str(), mode) == -1 )
118      {
119  #ifndef __OS2__
120 -        wxLogSysError(_("Failed to set temporary file permissions"));
121 +        wxLogSysError("%s", _("Failed to set temporary file permissions"));
122  #endif
123      }
124  #endif // Unix
125 --- wxWidgets-2.8.12/src/common/fileconf.cpp.orig       2011-03-22 12:59:41.000000000 +0100
126 +++ wxWidgets-2.8.12/src/common/fileconf.cpp    2012-09-30 08:20:45.761810510 +0200
127 @@ -508,7 +508,7 @@
128  
129              if ( err != wxSTREAM_NO_ERROR && err != wxSTREAM_EOF )
130              {
131 -                wxLogError(_("Error reading config options."));
132 +                wxLogError("%s", _("Error reading config options."));
133                  break;
134              }
135          }
136 @@ -1043,7 +1043,7 @@
137  
138    if ( !file.IsOpened() )
139    {
140 -    wxLogError(_("can't open user configuration file."));
141 +    wxLogError("%s", _("can't open user configuration file."));
142      return false;
143    }
144  
145 @@ -1057,13 +1057,13 @@
146  
147    if ( !file.Write(filetext, *m_conv) )
148    {
149 -    wxLogError(_("can't write user configuration file."));
150 +    wxLogError("%s", _("can't write user configuration file."));
151      return false;
152    }
153  
154    if ( !file.Commit() )
155    {
156 -      wxLogError(_("Failed to update user configuration file."));
157 +      wxLogError("%s", _("Failed to update user configuration file."));
158  
159        return false;
160    }
161 @@ -1090,7 +1090,7 @@
162          wxCharBuffer buf(line.mb_str(conv));
163          if ( !os.Write(buf, strlen(buf)) )
164          {
165 -            wxLogError(_("Error saving user configuration data."));
166 +            wxLogError("%s", _("Error saving user configuration data."));
167  
168              return false;
169          }
170 --- wxWidgets-2.8.12/src/common/filename.cpp.orig       2011-03-22 12:59:41.000000000 +0100
171 +++ wxWidgets-2.8.12/src/common/filename.cpp    2012-09-30 08:26:13.781803673 +0200
172 @@ -859,7 +859,7 @@
173  
174      if ( path.empty() )
175      {
176 -        wxLogSysError(_("Failed to create a temporary file name"));
177 +        wxLogSysError("%s", _("Failed to create a temporary file name"));
178      }
179      else
180      {
181 @@ -894,7 +894,7 @@
182              //        fails, though of course it should be protected against
183              //        possible infinite looping too.
184  
185 -            wxLogError(_("Failed to open temporary file."));
186 +            wxLogError("%s", _("Failed to open temporary file."));
187  
188              path.clear();
189          }
190 --- wxWidgets-2.8.12/src/common/filefn.cpp.orig 2011-03-22 12:59:41.000000000 +0100
191 +++ wxWidgets-2.8.12/src/common/filefn.cpp      2012-09-30 09:03:28.965090416 +0200
192 @@ -1513,7 +1513,7 @@
193  
194      if ( !ok )
195      {
196 -        wxLogSysError(_("Failed to get the working directory"));
197 +        wxLogSysError("%s", _("Failed to get the working directory"));
198  
199          // VZ: the old code used to return "." on error which didn't make any
200          //     sense at all to me - empty string is a better error indicator
201 --- wxWidgets-2.8.12/src/common/init.cpp.orig   2011-03-22 12:59:41.000000000 +0100
202 +++ wxWidgets-2.8.12/src/common/init.cpp        2012-09-30 09:06:52.951752832 +0200
203 @@ -237,7 +237,7 @@
204  
205      if ( !wxModule::InitializeModules() )
206      {
207 -        wxLogError(_("Initialization failed in post init, aborting."));
208 +        wxLogError("%s", _("Initialization failed in post init, aborting."));
209          return false;
210      }
211  
212 --- wxWidgets-2.8.12/src/common/stopwatch.cpp.orig      2011-03-22 12:59:42.000000000 +0100
213 +++ wxWidgets-2.8.12/src/common/stopwatch.cpp   2012-09-30 09:13:41.768410978 +0200
214 @@ -228,7 +228,7 @@
215      if (( t0 != (time_t)-1 ) && ( t1 != (time_t)-1 ))
216          return (long)difftime(t1, t0) + (60 * 60 * 24 * 4);
217  
218 -    wxLogSysError(_("Failed to get the local system time"));
219 +    wxLogSysError("%s", _("Failed to get the local system time"));
220      return -1;
221  }
222  
223 @@ -286,7 +286,7 @@
224      }
225      else
226      {
227 -        wxLogError(_("wxGetTimeOfDay failed."));
228 +        wxLogError("%s", _("wxGetTimeOfDay failed."));
229          return 0;
230      }
231  #elif defined(HAVE_FTIME)
232 --- wxWidgets-2.8.12/src/common/tarstrm.cpp.orig        2011-03-22 12:59:42.000000000 +0100
233 +++ wxWidgets-2.8.12/src/common/tarstrm.cpp     2012-09-30 09:40:58.075043539 +0200
234 @@ -790,7 +790,7 @@
235      while (!done) {
236          m_hdr->Read(*m_parent_i_stream);
237          if (m_parent_i_stream->Eof())
238 -            wxLogError(_("incomplete header block in tar"));
239 +            wxLogError("%s", _("incomplete header block in tar"));
240          if (!*m_parent_i_stream)
241              return wxSTREAM_READ_ERROR;
242          m_offset += TAR_BLOCKSIZE;
243 @@ -813,7 +813,7 @@
244          if (m_sumType == SUM_SIGNED)
245              ok = chksum == m_hdr->Sum(true);
246          if (!ok) {
247 -            wxLogError(_("checksum failure reading tar header block"));
248 +            wxLogError("%s", _("checksum failure reading tar header block"));
249              return wxSTREAM_READ_ERROR;
250          }
251  
252 @@ -986,7 +986,7 @@
253      }
254  
255      if (!ok || recPos < len || size != lastread) {
256 -        wxLogWarning(_("invalid data in extended tar header"));
257 +        wxLogWarning("%s", _("invalid data in extended tar header"));
258          return false;
259      }
260  
261 @@ -996,7 +996,7 @@
262  wxFileOffset wxTarInputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode)
263  {
264      if (!IsOpened()) {
265 -        wxLogError(_("tar entry not open"));
266 +        wxLogError("%s", _("tar entry not open"));
267          m_lasterror = wxSTREAM_READ_ERROR;
268      }
269      if (!IsOk())
270 @@ -1018,7 +1018,7 @@
271  size_t wxTarInputStream::OnSysRead(void *buffer, size_t size)
272  {
273      if (!IsOpened()) {
274 -        wxLogError(_("tar entry not open"));
275 +        wxLogError("%s", _("tar entry not open"));
276          m_lasterror = wxSTREAM_READ_ERROR;
277      }
278      if (!IsOk() || !size)
279 @@ -1037,7 +1037,7 @@
280      } else if (!m_parent_i_stream->IsOk()) {
281          // any other error will have been reported by the underlying stream
282          if (m_parent_i_stream->Eof())
283 -            wxLogError(_("unexpected end of file"));
284 +            wxLogError("%s", _("unexpected end of file"));
285          m_lasterror = wxSTREAM_READ_ERROR;
286      }
287  
288 @@ -1371,7 +1371,7 @@
289      }
290  
291      if (sizePos == wxInvalidOffset || !m_hdr->SetOctal(TAR_SIZE, m_pos)) {
292 -        wxLogError(_("incorrect size given for tar entry"));
293 +        wxLogError("%s", _("incorrect size given for tar entry"));
294          m_lasterror = wxSTREAM_WRITE_ERROR;
295          return false;
296      }
297 @@ -1492,7 +1492,7 @@
298  wxFileOffset wxTarOutputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode)
299  {
300      if (!IsOpened()) {
301 -        wxLogError(_("tar entry not open"));
302 +        wxLogError("%s", _("tar entry not open"));
303          m_lasterror = wxSTREAM_WRITE_ERROR;
304      }
305      if (!IsOk() || m_datapos == wxInvalidOffset)
306 @@ -1514,7 +1514,7 @@
307  size_t wxTarOutputStream::OnSysWrite(const void *buffer, size_t size)
308  {
309      if (!IsOpened()) {
310 -        wxLogError(_("tar entry not open"));
311 +        wxLogError("%s", _("tar entry not open"));
312          m_lasterror = wxSTREAM_WRITE_ERROR;
313      }
314      if (!IsOk() || !size)
315 --- wxWidgets-2.8.12/src/common/zstream.cpp.orig        2011-03-22 12:59:43.000000000 +0100
316 +++ wxWidgets-2.8.12/src/common/zstream.cpp     2012-09-30 09:47:40.141701824 +0200
317 @@ -146,7 +146,7 @@
318        flags = wxZLIB_ZLIB;
319      }
320      else {
321 -      wxLogError(_("Gzip not supported by this version of zlib"));
322 +      wxLogError("%s", _("Gzip not supported by this version of zlib"));
323        m_lasterror = wxSTREAM_READ_ERROR;
324        return;
325      }
326 @@ -173,7 +173,7 @@
327      }
328    }
329  
330 -  wxLogError(_("Can't initialize zlib inflate stream."));
331 +  wxLogError("%s", _("Can't initialize zlib inflate stream."));
332    m_lasterror = wxSTREAM_READ_ERROR;
333  }
334  
335 @@ -236,7 +236,7 @@
336            m_lasterror = wxSTREAM_EOF;
337          else
338  #endif
339 -          wxLogError(_("Can't read inflate stream: unexpected EOF in underlying stream."));
340 +          wxLogError("%s", _("Can't read inflate stream: unexpected EOF in underlying stream."));
341        break;
342  
343      default:
344 @@ -299,7 +299,7 @@
345  
346    // if gzip is asked for but not supported...
347    if (flags == wxZLIB_GZIP && !CanHandleGZip()) {
348 -    wxLogError(_("Gzip not supported by this version of zlib"));
349 +    wxLogError("%s", _("Gzip not supported by this version of zlib"));
350      m_lasterror = wxSTREAM_WRITE_ERROR;
351      return;
352    }
353 @@ -327,7 +327,7 @@
354      }
355    }
356  
357 -  wxLogError(_("Can't initialize zlib deflate stream."));
358 +  wxLogError("%s", _("Can't initialize zlib deflate stream."));
359    m_lasterror = wxSTREAM_WRITE_ERROR;
360  }
361  
362 --- wxWidgets-2.8.12/src/common/zipstrm.cpp.orig        2011-03-22 12:59:42.000000000 +0100
363 +++ wxWidgets-2.8.12/src/common/zipstrm.cpp     2012-09-30 09:49:19.005033098 +0200
364 @@ -525,7 +525,7 @@
365      m_parent_o_stream = &stream;
366  
367      if (deflateReset(m_deflate) != Z_OK) {
368 -        wxLogError(_("can't re-initialize zlib deflate stream"));
369 +        wxLogError("%s", _("can't re-initialize zlib deflate stream"));
370          m_lasterror = wxSTREAM_WRITE_ERROR;
371          return false;
372      }
373 @@ -550,7 +550,7 @@
374      m_parent_i_stream = &stream;
375  
376      if (inflateReset(m_inflate) != Z_OK) {
377 -        wxLogError(_("can't re-initialize zlib inflate stream"));
378 +        wxLogError("%s", _("can't re-initialize zlib inflate stream"));
379          m_lasterror = wxSTREAM_READ_ERROR;
380          return false;
381      }
382 @@ -1269,7 +1269,7 @@
383  
384      if (m_DiskNumber != 0 || m_StartDisk != 0 ||
385              m_EntriesHere != m_TotalEntries)
386 -        wxLogWarning(_("assuming this is a multi-part zip concatenated"));
387 +        wxLogWarning("%s", _("assuming this is a multi-part zip concatenated"));
388  
389      return true;
390  }
391 @@ -1441,7 +1441,7 @@
392          // failed, so either this is a non-seekable stream (ok), or not a zip
393          if (m_parentSeekable) {
394              m_lasterror = wxSTREAM_READ_ERROR;
395 -            wxLogError(_("invalid zip file"));
396 +            wxLogError("%s", _("invalid zip file"));
397              return false;
398          }
399          else {
400 @@ -1484,7 +1484,7 @@
401          return true;
402      }
403  
404 -    wxLogError(_("can't find central directory in zip"));
405 +    wxLogError("%s", _("can't find central directory in zip"));
406      m_lasterror = wxSTREAM_READ_ERROR;
407      return false;
408  }
409 @@ -1570,7 +1570,7 @@
410          return wxSTREAM_EOF;
411  
412      if (m_signature != CENTRAL_MAGIC) {
413 -        wxLogError(_("error reading zip central directory"));
414 +        wxLogError("%s", _("error reading zip central directory"));
415          return wxSTREAM_READ_ERROR;
416      }
417  
418 @@ -1661,7 +1661,7 @@
419          }
420      }
421  
422 -    wxLogError(_("error reading zip local header"));
423 +    wxLogError("%s", _("error reading zip local header"));
424      return wxSTREAM_READ_ERROR;
425  }
426  
427 @@ -1709,7 +1709,7 @@
428                  == wxInvalidOffset)
429              return false;
430          if (ReadSignature() != LOCAL_MAGIC) {
431 -            wxLogError(_("bad zipfile offset to entry"));
432 +            wxLogError("%s", _("bad zipfile offset to entry"));
433              return false;
434          }
435      }
436 @@ -1776,7 +1776,7 @@
437      switch (m_entry.GetMethod()) {
438          case wxZIP_METHOD_STORE:
439              if (m_entry.GetSize() == wxInvalidOffset) {
440 -                wxLogError(_("stored file length not in Zip header"));
441 +                wxLogError("%s", _("stored file length not in Zip header"));
442                  break;
443              }
444              m_store->Open(m_entry.GetSize());
445 @@ -1790,7 +1790,7 @@
446              return m_inflate;
447  
448          default:
449 -            wxLogError(_("unsupported Zip compression method"));
450 +            wxLogError("%s", _("unsupported Zip compression method"));
451      }
452  
453      return NULL;
454 @@ -2171,7 +2171,7 @@
455          }
456  
457          default:
458 -            wxLogError(_("unsupported Zip compression method"));
459 +            wxLogError("%s", _("unsupported Zip compression method"));
460      }
461  
462      return NULL;
463 --- wxWidgets-2.8.12/include/wx/unix/pipe.h.orig        2011-03-22 13:01:28.000000000 +0100
464 +++ wxWidgets-2.8.12/include/wx/unix/pipe.h     2012-09-30 09:52:41.701695539 +0200
465 @@ -44,7 +44,7 @@
466      {
467          if ( pipe(m_fds) == -1 )
468          {
469 -            wxLogSysError(_("Pipe creation failed"));
470 +            wxLogSysError("%s", _("Pipe creation failed"));
471  
472              return FALSE;
473          }
474 --- wxWidgets-2.8.12/src/unix/baseunix.cpp.orig 2011-03-22 13:01:28.000000000 +0100
475 +++ wxWidgets-2.8.12/src/unix/baseunix.cpp      2012-09-30 09:53:20.938361388 +0200
476 @@ -75,7 +75,7 @@
477      int exitcode = 0;
478      if ( waitpid(execData.pid, &exitcode, 0) == -1 || !WIFEXITED(exitcode) )
479      {
480 -        wxLogSysError(_("Waiting for subprocess termination failed"));
481 +        wxLogSysError("%s", _("Waiting for subprocess termination failed"));
482      }
483  
484      return exitcode;
485 --- wxWidgets-2.8.12/src/unix/snglinst.cpp.orig 2011-03-22 13:01:28.000000000 +0100
486 +++ wxWidgets-2.8.12/src/unix/snglinst.cpp      2012-09-30 10:01:41.101684296 +0200
487 @@ -267,7 +267,7 @@
488          // another process managed to open and lock the file and terminate
489          // (erasing it) before we got here, but this should happen so
490          // rarely in practice that we don't care
491 -        wxLogError(_("Failed to access lock file."));
492 +        wxLogError("%s", _("Failed to access lock file."));
493  
494          return false;
495      }
496 @@ -276,7 +276,7 @@
497      ssize_t count = file.Read(buf, WXSIZEOF(buf));
498      if ( count == wxInvalidOffset )
499      {
500 -        wxLogError(_("Failed to read PID from lock file."));
501 +        wxLogError("%s", _("Failed to read PID from lock file."));
502      }
503      else
504      {
505 --- wxWidgets-2.8.12/src/unix/threadpsx.cpp.orig        2011-03-22 13:01:28.000000000 +0100
506 +++ wxWidgets-2.8.12/src/unix/threadpsx.cpp     2012-09-30 10:06:25.185011707 +0200
507 @@ -729,7 +729,7 @@
508      int rc = pthread_setspecific(gs_keySelf, thread);
509      if ( rc != 0 )
510      {
511 -        wxLogSysError(rc, _("Cannot start thread: error writing TLS"));
512 +        wxLogSysError(rc, "%s", _("Cannot start thread: error writing TLS"));
513  
514          return (void *)-1;
515      }
516 @@ -907,7 +907,7 @@
517                  // wxLogDebug: it is possible to bring the system to its knees
518                  // by creating too many threads and not joining them quite
519                  // easily
520 -                wxLogError(_("Failed to join a thread, potential memory leak detected - please restart the program"));
521 +                wxLogError("%s", _("Failed to join a thread, potential memory leak detected - please restart the program"));
522              }
523  
524              m_shouldBeJoined = false;
525 @@ -1106,7 +1106,7 @@
526      int policy;
527      if ( pthread_attr_getschedpolicy(&attr, &policy) != 0 )
528      {
529 -        wxLogError(_("Cannot retrieve thread scheduling policy."));
530 +        wxLogError("%s", _("Cannot retrieve thread scheduling policy."));
531      }
532  
533  #ifdef __VMS__
534 @@ -1133,7 +1133,7 @@
535          if ( prio != WXTHREAD_DEFAULT_PRIORITY )
536          {
537              // notify the programmer that this doesn't work here
538 -            wxLogWarning(_("Thread priority setting is ignored."));
539 +            wxLogWarning("%s", _("Thread priority setting is ignored."));
540          }
541          //else: we have default priority, so don't complain
542  
543 @@ -1433,7 +1433,7 @@
544              if ( pthread_cancel(m_internal->GetId()) != 0 )
545  #endif // HAVE_PTHREAD_CANCEL
546              {
547 -                wxLogError(_("Failed to terminate a thread."));
548 +                wxLogError("%s", _("Failed to terminate a thread."));
549  
550                  return wxTHREAD_MISC_ERROR;
551              }
552 @@ -1615,7 +1615,7 @@
553      int rc = pthread_key_create(&gs_keySelf, NULL /* dtor function */);
554      if ( rc != 0 )
555      {
556 -        wxLogSysError(rc, _("Thread module initialization failed: failed to create thread key"));
557 +        wxLogSysError(rc, "%s", _("Thread module initialization failed: failed to create thread key"));
558  
559          return false;
560      }
561 --- wxWidgets-2.8.12/src/common/ftp.cpp.orig    2011-03-22 12:59:41.000000000 +0100
562 +++ wxWidgets-2.8.12/src/common/ftp.cpp 2012-09-30 10:18:44.061662974 +0200
563 @@ -628,7 +628,7 @@
564      if ( !sockSrv->WaitForAccept() )
565      {
566          m_lastError = wxPROTO_CONNERR;
567 -        wxLogError(_("Timeout while waiting for FTP server to connect, try passive mode."));
568 +        wxLogError("%s", _("Timeout while waiting for FTP server to connect, try passive mode."));
569          delete sock;
570          sock = NULL;
571      }
572 @@ -689,7 +689,7 @@
573      {
574          m_lastError = wxPROTO_PROTERR;
575          delete sockSrv;
576 -        wxLogError(_("The FTP server doesn't support the PORT command."));
577 +        wxLogError("%s", _("The FTP server doesn't support the PORT command."));
578          return NULL;
579      }
580  
581 @@ -701,7 +701,7 @@
582  {
583      if ( !DoSimpleCommand(_T("PASV")) )
584      {
585 -        wxLogError(_("The FTP server doesn't support passive mode."));
586 +        wxLogError("%s", _("The FTP server doesn't support passive mode."));
587          return NULL;
588      }
589  
590 --- wxWidgets-2.8.12/src/unix/utilsunx.cpp.orig 2011-03-22 13:01:28.000000000 +0100
591 +++ wxWidgets-2.8.12/src/unix/utilsunx.cpp      2012-09-30 10:28:09.194984528 +0200
592 @@ -432,7 +432,7 @@
593      switch ( select(fd + 1, &readfds, NULL, NULL, &tv) )
594      {
595          case -1:
596 -            wxLogSysError(_("Impossible to get child process input"));
597 +            wxLogSysError("%s", _("Impossible to get child process input"));
598              // fall through
599  
600          case 0:
601 @@ -543,7 +543,7 @@
602  #endif
603     if ( pid == -1 )     // error?
604      {
605 -        wxLogSysError( _("Fork failed") );
606 +        wxLogSysError("%s", _("Fork failed") );
607  
608          ARGS_CLEANUP;
609  
610 @@ -596,7 +596,7 @@
611                   dup2(pipeOut[wxPipe::Write], STDOUT_FILENO) == -1 ||
612                   dup2(pipeErr[wxPipe::Write], STDERR_FILENO) == -1 )
613              {
614 -                wxLogSysError(_("Failed to redirect child process input/output"));
615 +                wxLogSysError("%s", _("Failed to redirect child process input/output"));
616              }
617  
618              pipeIn.Close();
619 @@ -806,7 +806,7 @@
620  
621      if ( !ok )
622      {
623 -        wxLogSysError(_("Cannot get the hostname"));
624 +        wxLogSysError("%s", _("Cannot get the hostname"));
625      }
626  
627      return ok;
628 @@ -842,7 +842,7 @@
629              struct hostent *host = gethostbyname(wxSafeConvertWX2MB(buf));
630              if ( !host )
631              {
632 -                wxLogSysError(_("Cannot get the official hostname"));
633 +                wxLogSysError("%s", _("Cannot get the official hostname"));
634  
635                  ok = false;
636              }
637 --- wxWidgets-2.8.12/src/common/sckaddr.cpp.orig        2011-03-22 12:59:42.000000000 +0100
638 +++ wxWidgets-2.8.12/src/common/sckaddr.cpp     2012-09-30 10:54:15.261618553 +0200
639 @@ -141,7 +141,7 @@
640    // Some people are sometimes fool.
641    if (name.empty())
642    {
643 -    wxLogWarning( _("Trying to solve a NULL hostname: giving up") );
644 +    wxLogWarning("%s", _("Trying to solve a NULL hostname: giving up") );
645      return false;
646    }
647    m_origHostname = name;
648 --- wxWidgets-2.8.12/src/common/socket.cpp.orig 2011-03-22 12:59:42.000000000 +0100
649 +++ wxWidgets-2.8.12/src/common/socket.cpp      2012-09-30 10:58:04.798280436 +0200
650 @@ -409,7 +409,7 @@
651  
652    if (sig != 0xfeeddead)
653    {
654 -    wxLogWarning(_("wxSocket: invalid signature in ReadMsg."));
655 +    wxLogWarning("%s", _("wxSocket: invalid signature in ReadMsg."));
656      goto exit;
657    }
658  
659 @@ -463,7 +463,7 @@
660  
661    if (sig != 0xdeadfeed)
662    {
663 -    wxLogWarning(_("wxSocket: invalid signature in ReadMsg."));
664 +    wxLogWarning("%s", _("wxSocket: invalid signature in ReadMsg."));
665      goto exit;
666    }
667  
668 @@ -990,7 +990,7 @@
669      case GSOCK_CONNECTION: flag = GSOCK_CONNECTION_FLAG; break;
670      case GSOCK_LOST:       flag = GSOCK_LOST_FLAG; break;
671      default:
672 -      wxLogWarning(_("wxSocket: unknown event!."));
673 +      wxLogWarning("%s", _("wxSocket: unknown event!."));
674        return;
675    }
676  
677 --- wxWidgets-2.8.12/src/unix/displayx11.cpp.orig       2011-03-22 13:01:28.000000000 +0100
678 +++ wxWidgets-2.8.12/src/unix/displayx11.cpp    2012-09-30 15:55:56.814574597 +0200
679 @@ -208,7 +208,7 @@
680      }
681      else //OOPS!
682      {
683 -        wxLogSysError(_("Failed to enumerate video modes"));
684 +        wxLogSysError("%s", _("Failed to enumerate video modes"));
685      }
686  
687      return Modes;
688 @@ -231,7 +231,7 @@
689  
690      if( !XF86VidModeGetAllModeLines((Display*)wxGetDisplay(), DefaultScreen((Display*)wxGetDisplay()), &nNumModes, &ppXModes) )
691      {
692 -        wxLogSysError(_("Failed to change video mode"));
693 +        wxLogSysError("%s", _("Failed to change video mode"));
694          return false;
695      }
696  
697 --- wxWidgets-2.8.12/src/unix/dialup.cpp.orig   2011-03-22 13:01:28.000000000 +0100
698 +++ wxWidgets-2.8.12/src/unix/dialup.cpp        2012-09-30 15:56:29.271240585 +0200
699 @@ -353,7 +353,7 @@
700          return false;
701      if(IsDialing())
702      {
703 -        wxLogError(_("Already dialling ISP."));
704 +        wxLogError("%s", _("Already dialling ISP."));
705          return false;
706      }
707      wxString cmd;
708 --- wxWidgets-2.8.12/src/gtk/textctrl.cpp.orig  2011-03-22 13:01:32.000000000 +0100
709 +++ wxWidgets-2.8.12/src/gtk/textctrl.cpp       2012-09-30 16:21:18.987876200 +0200
710 @@ -1015,7 +1015,7 @@
711      {
712          // see comment in WriteText() as to why we must warn the user about
713          // this
714 -        wxLogWarning(_("Failed to set text in the text control."));
715 +        wxLogWarning("%s", _("Failed to set text in the text control."));
716          return;
717      }
718  
719 @@ -1072,7 +1072,7 @@
720          // we must log an error here as losing the text like this can be a
721          // serious problem (e.g. imagine the document edited by user being
722          // empty instead of containing the correct text)
723 -        wxLogWarning(_("Failed to insert text in the control."));
724 +        wxLogWarning("%s", _("Failed to insert text in the control."));
725          return;
726      }
727  
728 --- wxWidgets-2.8.12/src/common/docview.cpp.orig        2011-03-22 12:59:40.000000000 +0100
729 +++ wxWidgets-2.8.12/src/common/docview.cpp     2012-09-30 16:43:04.191182329 +0200
730 @@ -612,7 +612,7 @@
731              return true;
732      }
733  
734 -    wxLogError(_("Sorry, could not open this file."));
735 +    wxLogError("%s", _("Sorry, could not open this file."));
736      return false;
737  }
738  
739 --- wxWidgets-2.8.12/src/common/fontmap.cpp.orig        2011-03-22 12:59:41.000000000 +0100
740 +++ wxWidgets-2.8.12/src/common/fontmap.cpp     2012-09-30 16:47:20.114510328 +0200
741 @@ -320,7 +320,7 @@
742      // message
743      if ( encoding == wxFONTENCODING_SYSTEM )
744      {
745 -        wxLogFatalError(_("can't load any font, aborting"));
746 +        wxLogFatalError("%s", _("can't load any font, aborting"));
747  
748          // wxLogFatalError doesn't return
749      }
750 --- wxWidgets-2.8.12/src/common/imagbmp.cpp.orig        2011-03-22 12:59:41.000000000 +0100
751 +++ wxWidgets-2.8.12/src/common/imagbmp.cpp     2012-09-30 16:57:19.711164497 +0200
752 @@ -88,7 +88,7 @@
753      if ( !image->Ok() )
754      {
755          if ( verbose )
756 -            wxLogError(_("BMP: Couldn't save invalid image."));
757 +            wxLogError("%s", _("BMP: Couldn't save invalid image."));
758          return false;
759      }
760  
761 @@ -122,7 +122,7 @@
762              )
763          {
764              if ( verbose )
765 -                wxLogError(_("BMP: wxImage doesn't have own wxPalette."));
766 +                wxLogError("%s", _("BMP: wxImage doesn't have own wxPalette."));
767              return false;
768          }
769          bpp = 8;
770 @@ -197,7 +197,7 @@
771             )
772          {
773              if (verbose)
774 -                wxLogError(_("BMP: Couldn't write the file (Bitmap) header."));
775 +                wxLogError("%s", _("BMP: Couldn't write the file (Bitmap) header."));
776              return false;
777          }
778      }
779 @@ -218,7 +218,7 @@
780             )
781          {
782              if (verbose)
783 -                wxLogError(_("BMP: Couldn't write the file (BitmapInfo) header."));
784 +                wxLogError("%s", _("BMP: Couldn't write the file (BitmapInfo) header."));
785              return false;
786          }
787      }
788 @@ -292,7 +292,7 @@
789              if ( !stream.Write(rgbquad, palette_size*4) )
790              {
791                  if (verbose)
792 -                    wxLogError(_("BMP: Couldn't write RGB color map."));
793 +                    wxLogError("%s", _("BMP: Couldn't write RGB color map."));
794                  delete[] rgbquad;
795  #if wxUSE_PALETTE
796                  delete palette;
797 @@ -425,7 +425,7 @@
798          if ( !stream.Write(buffer, row_width) )
799          {
800              if (verbose)
801 -                wxLogError(_("BMP: Couldn't write data."));
802 +                wxLogError("%s", _("BMP: Couldn't write data."));
803              delete[] buffer;
804  #if wxUSE_PALETTE
805              delete palette;
806 @@ -471,7 +471,7 @@
807          if ( !cmap )
808          {
809              if (verbose)
810 -                wxLogError(_("BMP: Couldn't allocate memory."));
811 +                wxLogError("%s", _("BMP: Couldn't allocate memory."));
812              return false;
813          }
814      }
815 @@ -487,7 +487,7 @@
816      if ( !ptr )
817      {
818          if ( verbose )
819 -            wxLogError( _("BMP: Couldn't allocate memory.") );
820 +            wxLogError("%s", _("BMP: Couldn't allocate memory.") );
821          delete[] cmap;
822          return false;
823      }
824 @@ -501,7 +501,7 @@
825          if ( !alpha )
826          {
827              if ( verbose )
828 -                wxLogError(_("BMP: Couldn't allocate memory."));
829 +                wxLogError("%s", _("BMP: Couldn't allocate memory."));
830              delete[] cmap;
831              return false;
832          }
833 @@ -898,13 +898,13 @@
834      if ( width > 32767 )
835      {
836          if (verbose)
837 -            wxLogError( _("DIB Header: Image width > 32767 pixels for file.") );
838 +            wxLogError("%s", _("DIB Header: Image width > 32767 pixels for file.") );
839          return false;
840      }
841      if ( height > 32767 )
842      {
843          if (verbose)
844 -            wxLogError( _("DIB Header: Image height > 32767 pixels for file.") );
845 +            wxLogError("%s", _("DIB Header: Image height > 32767 pixels for file.") );
846          return false;
847      }
848  
849 @@ -918,7 +918,7 @@
850      if ( bpp != 1 && bpp != 4 && bpp != 8 && bpp != 16 && bpp != 24 && bpp != 32 )
851      {
852          if (verbose)
853 -            wxLogError( _("DIB Header: Unknown bitdepth in file.") );
854 +            wxLogError("%s", _("DIB Header: Unknown bitdepth in file.") );
855          return false;
856      }
857  
858 @@ -928,7 +928,7 @@
859           comp != BI_BITFIELDS )
860      {
861          if (verbose)
862 -            wxLogError( _("DIB Header: Unknown encoding in file.") );
863 +            wxLogError("%s", _("DIB Header: Unknown encoding in file.") );
864          return false;
865      }
866  
867 @@ -942,7 +942,7 @@
868          ((comp == BI_BITFIELDS) && (bpp != 16 && bpp != 32)))
869      {
870          if (verbose)
871 -            wxLogError( _("DIB Header: Encoding doesn't match bitdepth.") );
872 +            wxLogError("%s", _("DIB Header: Encoding doesn't match bitdepth.") );
873          return false;
874      }
875  
876 @@ -951,7 +951,7 @@
877                      verbose, IsBmp, true) )
878      {
879          if (verbose)
880 -            wxLogError( _("Error in reading image DIB.") );
881 +            wxLogError("%s", _("Error in reading image DIB.") );
882          return false;
883      }
884  
885 @@ -964,7 +964,7 @@
886                          verbose, IsBmp, false) )
887          {
888              if (verbose)
889 -                wxLogError( _("ICO: Error in reading mask DIB.") );
890 +                wxLogError("%s", _("ICO: Error in reading mask DIB.") );
891              return false;
892          }
893          image->SetMaskFromImage(mask, 255, 255, 255);
894 @@ -1037,13 +1037,13 @@
895      if ( image->GetHeight () > 127 )
896      {
897          if ( verbose )
898 -            wxLogError(_("ICO: Image too tall for an icon."));
899 +            wxLogError("%s", _("ICO: Image too tall for an icon."));
900          return false;
901      }
902      if ( image->GetWidth () > 255 )
903      {
904          if ( verbose )
905 -            wxLogError(_("ICO: Image too wide for an icon."));
906 +            wxLogError("%s", _("ICO: Image too wide for an icon."));
907          return false;
908      }
909  
910 @@ -1069,7 +1069,7 @@
911      if ( !stream.IsOk() )
912      {
913          if ( verbose )
914 -            wxLogError(_("ICO: Error writing the image file!"));
915 +            wxLogError("%s", _("ICO: Error writing the image file!"));
916          return false;
917      }
918  
919 @@ -1128,7 +1128,7 @@
920          if ( !bResult )
921          {
922              if ( verbose )
923 -                wxLogError(_("ICO: Error writing the image file!"));
924 +                wxLogError("%s", _("ICO: Error writing the image file!"));
925              return false;
926          }
927          IsMask = true;
928 @@ -1137,7 +1137,7 @@
929          if ( !bResult )
930          {
931              if ( verbose )
932 -                wxLogError(_("ICO: Error writing the image file!"));
933 +                wxLogError("%s", _("ICO: Error writing the image file!"));
934              return false;
935          }
936          wxUint32 Size = cStream.GetSize();
937 @@ -1192,7 +1192,7 @@
938          if ( !stream.IsOk() )
939          {
940              if ( verbose )
941 -                wxLogError(_("ICO: Error writing the image file!"));
942 +                wxLogError("%s", _("ICO: Error writing the image file!"));
943              return false;
944          }
945  
946 @@ -1202,7 +1202,7 @@
947          if ( !bResult )
948          {
949              if ( verbose )
950 -                wxLogError(_("ICO: Error writing the image file!"));
951 +                wxLogError("%s", _("ICO: Error writing the image file!"));
952              return false;
953          }
954          IsMask = true;
955 @@ -1211,7 +1211,7 @@
956          if ( !bResult )
957          {
958              if ( verbose )
959 -                wxLogError(_("ICO: Error writing the image file!"));
960 +                wxLogError("%s", _("ICO: Error writing the image file!"));
961              return false;
962          }
963  
964 @@ -1276,7 +1276,7 @@
965  
966      if ( iSel == wxNOT_FOUND || iSel < 0 || iSel >= nIcons )
967      {
968 -        wxLogError(_("ICO: Invalid icon index."));
969 +        wxLogError("%s", _("ICO: Invalid icon index."));
970          bResult = false;
971      }
972      else
973 --- wxWidgets-2.8.12/src/common/image.cpp.orig  2011-03-22 12:59:41.000000000 +0100
974 +++ wxWidgets-2.8.12/src/common/image.cpp       2012-09-30 16:59:23.204495257 +0200
975 @@ -1842,7 +1842,7 @@
976      // check that the images are the same size
977      if ( (M_IMGDATA->m_height != mask.GetHeight() ) || (M_IMGDATA->m_width != mask.GetWidth () ) )
978      {
979 -        wxLogError( _("Image and mask have different sizes.") );
980 +        wxLogError("%s", _("Image and mask have different sizes.") );
981          return false;
982      }
983  
984 @@ -1850,7 +1850,7 @@
985      unsigned char r,g,b ;
986      if (!FindFirstUnusedColour(&r, &g, &b))
987      {
988 -        wxLogError( _("No unused colour in image being masked.") );
989 +        wxLogError("%s", _("No unused colour in image being masked.") );
990          return false ;
991      }
992  
993 @@ -1891,7 +1891,7 @@
994      unsigned char mr, mg, mb;
995      if (!FindFirstUnusedColour(&mr, &mg, &mb))
996      {
997 -        wxLogError( _("No unused colour in image being masked.") );
998 +        wxLogError("%s", _("No unused colour in image being masked.") );
999          return false;
1000      }
1001  
1002 @@ -2172,7 +2172,7 @@
1003  
1004          }
1005  
1006 -        wxLogWarning(_("No handler found for image type."));
1007 +        wxLogWarning("%s", _("No handler found for image type."));
1008          return 0;
1009      }
1010  
1011 @@ -2215,7 +2215,7 @@
1012  
1013          }
1014  
1015 -        wxLogWarning( _("No handler found for image type.") );
1016 +        wxLogWarning("%s", _("No handler found for image type.") );
1017          return false;
1018      }
1019  
1020 @@ -2696,7 +2696,7 @@
1021                  b2++;
1022                  if ( b2 >= 255 )
1023                  {
1024 -                    wxLogError(_("No unused colour in image.") );
1025 +                    wxLogError("%s",_("No unused colour in image.") );
1026                      return false;
1027                  }
1028              }
1029 --- wxWidgets-2.8.12/src/common/imaggif.cpp.orig        2011-03-22 12:59:41.000000000 +0100
1030 +++ wxWidgets-2.8.12/src/common/imaggif.cpp     2012-09-30 17:04:34.731155430 +0200
1031 @@ -51,13 +51,13 @@
1032              switch (error)
1033              {
1034                  case wxGIF_INVFORMAT:
1035 -                    wxLogError(_("GIF: error in GIF image format."));
1036 +                    wxLogError("%s", _("GIF: error in GIF image format."));
1037                      break;
1038                  case wxGIF_MEMERR:
1039 -                    wxLogError(_("GIF: not enough memory."));
1040 +                    wxLogError("%s", _("GIF: not enough memory."));
1041                      break;
1042                  default:
1043 -                    wxLogError(_("GIF: unknown error!!!"));
1044 +                    wxLogError("%s", _("GIF: unknown error!!!"));
1045                      break;
1046              }
1047          }
1048 @@ -67,7 +67,7 @@
1049  
1050      if ((error == wxGIF_TRUNCATED) && verbose)
1051      {
1052 -        wxLogError(_("GIF: data stream seems to be truncated."));
1053 +        wxLogError("%s", _("GIF: data stream seems to be truncated."));
1054          /* go on; image data is OK */
1055      }
1056  
1057 @@ -77,7 +77,7 @@
1058      }
1059      else
1060      {
1061 -        wxLogError(_("GIF: Invalid gif index."));
1062 +        wxLogError("%s", _("GIF: Invalid gif index."));
1063      }
1064  
1065      delete decod;
1066 --- wxWidgets-2.8.12/src/common/imagjpeg.cpp.orig       2011-03-22 12:59:41.000000000 +0100
1067 +++ wxWidgets-2.8.12/src/common/imagjpeg.cpp    2012-09-30 18:17:01.807731491 +0200
1068 @@ -247,7 +247,7 @@
1069         * We need to clean up the JPEG object, close the input file, and return.
1070         */
1071        if (verbose)
1072 -        wxLogError(_("JPEG: Couldn't load - file is probably corrupted."));
1073 +        wxLogError("%s", _("JPEG: Couldn't load - file is probably corrupted."));
1074        (cinfo.src->term_source)(&cinfo);
1075        jpeg_destroy_decompress(&cinfo);
1076        if (image->Ok()) image->Destroy();
1077 @@ -390,7 +390,7 @@
1078           * We need to clean up the JPEG object, close the input file, and return.
1079           */
1080           if (verbose)
1081 -            wxLogError(_("JPEG: Couldn't save image."));
1082 +            wxLogError("%s", _("JPEG: Couldn't save image."));
1083           jpeg_destroy_compress(&cinfo);
1084           return false;
1085      }
1086 --- wxWidgets-2.8.12/src/common/imagpcx.cpp.orig        2011-03-22 12:59:41.000000000 +0100
1087 +++ wxWidgets-2.8.12/src/common/imagpcx.cpp     2012-09-30 18:19:28.711061763 +0200
1088 @@ -439,7 +439,7 @@
1089      if (!CanRead(stream))
1090      {
1091          if (verbose)
1092 -            wxLogError(_("PCX: this is not a PCX file."));
1093 +            wxLogError("%s", _("PCX: this is not a PCX file."));
1094  
1095          return false;
1096      }
1097 @@ -452,10 +452,10 @@
1098          {
1099              switch (error)
1100              {
1101 -                case wxPCX_INVFORMAT: wxLogError(_("PCX: image format unsupported")); break;
1102 -                case wxPCX_MEMERR:    wxLogError(_("PCX: couldn't allocate memory")); break;
1103 -                case wxPCX_VERERR:    wxLogError(_("PCX: version number too low")); break;
1104 -                default:              wxLogError(_("PCX: unknown error !!!"));
1105 +                case wxPCX_INVFORMAT: wxLogError("%s", _("PCX: image format unsupported")); break;
1106 +                case wxPCX_MEMERR:    wxLogError("%s", _("PCX: couldn't allocate memory")); break;
1107 +                case wxPCX_VERERR:    wxLogError("%s", _("PCX: version number too low")); break;
1108 +                default:              wxLogError("%s", _("PCX: unknown error !!!"));
1109              }
1110          }
1111          image->Destroy();
1112 @@ -475,9 +475,9 @@
1113          {
1114              switch (error)
1115              {
1116 -                case wxPCX_INVFORMAT: wxLogError(_("PCX: invalid image")); break;
1117 -                case wxPCX_MEMERR:    wxLogError(_("PCX: couldn't allocate memory")); break;
1118 -                default:              wxLogError(_("PCX: unknown error !!!"));
1119 +                case wxPCX_INVFORMAT: wxLogError("%s", _("PCX: invalid image")); break;
1120 +                case wxPCX_MEMERR:    wxLogError("%s", _("PCX: couldn't allocate memory")); break;
1121 +                default:              wxLogError("%s", _("PCX: unknown error !!!"));
1122              }
1123          }
1124      }
1125 --- wxWidgets-2.8.12/src/common/imagpng.cpp.orig        2011-03-22 12:59:41.000000000 +0100
1126 +++ wxWidgets-2.8.12/src/common/imagpng.cpp     2012-09-30 18:21:56.457725349 +0200
1127 @@ -175,7 +175,7 @@
1128  {
1129      wxPNGInfoStruct *info = png_ptr ? WX_PNG_INFO(png_ptr) : NULL;
1130      if ( !info || info->verbose )
1131 -        wxLogWarning( wxString::FromAscii(message) );
1132 +        wxLogWarning("%s", message );
1133  }
1134  
1135  // from pngerror.c
1136 @@ -293,7 +293,7 @@
1137  
1138      if ( !h.FindFirstUnusedColour(&rMask, &gMask, &bMask) )
1139      {
1140 -        wxLogWarning(_("Too many colours in PNG, the image may be slightly blurred."));
1141 +        wxLogWarning("%s", _("Too many colours in PNG, the image may be slightly blurred."));
1142  
1143          // use a fixed mask colour and we'll fudge
1144          // the real pixels with this colour (see
1145 @@ -621,7 +621,7 @@
1146  
1147  error:
1148      if (verbose)
1149 -       wxLogError(_("Couldn't load a PNG image - file is corrupted or not enough memory."));
1150 +       wxLogError("%s", _("Couldn't load a PNG image - file is corrupted or not enough memory."));
1151  
1152      if ( image->Ok() )
1153      {
1154 @@ -670,7 +670,7 @@
1155      if (!png_ptr)
1156      {
1157          if (verbose)
1158 -           wxLogError(_("Couldn't save PNG image."));
1159 +           wxLogError("%s", _("Couldn't save PNG image."));
1160          return false;
1161      }
1162  
1163 @@ -679,7 +679,7 @@
1164      {
1165          png_destroy_write_struct( &png_ptr, (png_infopp)NULL );
1166          if (verbose)
1167 -           wxLogError(_("Couldn't save PNG image."));
1168 +           wxLogError("%s", _("Couldn't save PNG image."));
1169          return false;
1170      }
1171  
1172 @@ -687,7 +687,7 @@
1173      {
1174          png_destroy_write_struct( &png_ptr, (png_infopp)NULL );
1175          if (verbose)
1176 -           wxLogError(_("Couldn't save PNG image."));
1177 +           wxLogError("%s", _("Couldn't save PNG image."));
1178          return false;
1179      }
1180  
1181 --- wxWidgets-2.8.12/src/common/imagpnm.cpp.orig        2011-03-22 12:59:41.000000000 +0100
1182 +++ wxWidgets-2.8.12/src/common/imagpnm.cpp     2012-09-30 18:26:48.461052596 +0200
1183 @@ -69,7 +69,7 @@
1184          case wxT('5'): // RAW Grey
1185          case wxT('6'): break;
1186          default:
1187 -            if (verbose) wxLogError(_("PNM: File format is not recognized."));
1188 +            if (verbose) wxLogError("%s", _("PNM: File format is not recognized."));
1189              return false;
1190      }
1191  
1192 @@ -85,7 +85,7 @@
1193      if (!ptr)
1194      {
1195          if (verbose)
1196 -           wxLogError( _("PNM: Couldn't allocate memory.") );
1197 +           wxLogError("%s",  _("PNM: Couldn't allocate memory.") );
1198          return false;
1199      }
1200  
1201 @@ -103,7 +103,7 @@
1202              *ptr++=(unsigned char)value; // B
1203              if ( !buf_stream )
1204              {
1205 -                if (verbose) wxLogError(_("PNM: File seems truncated."));
1206 +                if (verbose) wxLogError("%s", _("PNM: File seems truncated."));
1207                  return false;
1208              }
1209          }
1210 @@ -122,7 +122,7 @@
1211  
1212              if ( !buf_stream )
1213                {
1214 -                if (verbose) wxLogError(_("PNM: File seems truncated."));
1215 +                if (verbose) wxLogError("%s", _("PNM: File seems truncated."));
1216                  return false;
1217                }
1218            }
1219 @@ -141,7 +141,7 @@
1220              *ptr++=value; // B
1221              if ( !buf_stream )
1222              {
1223 -                if (verbose) wxLogError(_("PNM: File seems truncated."));
1224 +                if (verbose) wxLogError("%s", _("PNM: File seems truncated."));
1225                  return false;
1226              }
1227          }
1228 --- wxWidgets-2.8.12/src/common/imagtiff.cpp.orig       2011-03-22 12:59:41.000000000 +0100
1229 +++ wxWidgets-2.8.12/src/common/imagtiff.cpp    2012-09-30 18:35:21.521041902 +0200
1230 @@ -245,7 +245,7 @@
1231      if (!tif)
1232      {
1233          if (verbose)
1234 -            wxLogError( _("TIFF: Error loading image.") );
1235 +            wxLogError("%s", _("TIFF: Error loading image.") );
1236  
1237          return false;
1238      }
1239 @@ -253,7 +253,7 @@
1240      if (!TIFFSetDirectory( tif, (tdir_t)index ))
1241      {
1242          if (verbose)
1243 -            wxLogError( _("Invalid TIFF image index.") );
1244 +            wxLogError("%s", _("Invalid TIFF image index.") );
1245  
1246          TIFFClose( tif );
1247  
1248 @@ -280,7 +280,7 @@
1249      if ( bytesNeeded >= 4294967295U /* UINT32_MAX */ )
1250      {
1251          if ( verbose )
1252 -            wxLogError( _("TIFF: Image size is abnormally big.") );
1253 +            wxLogError("%s", _("TIFF: Image size is abnormally big.") );
1254  
1255          TIFFClose(tif);
1256  
1257 @@ -292,7 +292,7 @@
1258      if (!raster)
1259      {
1260          if (verbose)
1261 -            wxLogError( _("TIFF: Couldn't allocate memory.") );
1262 +            wxLogError("%s", _("TIFF: Couldn't allocate memory.") );
1263  
1264          TIFFClose( tif );
1265  
1266 @@ -303,7 +303,7 @@
1267      if (!image->Ok())
1268      {
1269          if (verbose)
1270 -            wxLogError( _("TIFF: Couldn't allocate memory.") );
1271 +            wxLogError("%s", _("TIFF: Couldn't allocate memory.") );
1272  
1273          _TIFFfree( raster );
1274          TIFFClose( tif );
1275 @@ -317,7 +317,7 @@
1276      if (!TIFFReadRGBAImage( tif, w, h, raster, 0 ))
1277      {
1278          if (verbose)
1279 -            wxLogError( _("TIFF: Error reading image.") );
1280 +            wxLogError("%s", _("TIFF: Error reading image.") );
1281  
1282          _TIFFfree( raster );
1283          image->Destroy();
1284 @@ -385,7 +385,7 @@
1285      if (!tif)
1286      {
1287          if (verbose)
1288 -            wxLogError( _("TIFF: Error saving image.") );
1289 +            wxLogError("%s", _("TIFF: Error saving image.") );
1290  
1291          return false;
1292      }
1293 @@ -443,7 +443,7 @@
1294          if (!buf)
1295          {
1296              if (verbose)
1297 -                wxLogError( _("TIFF: Couldn't allocate memory.") );
1298 +                wxLogError("%s", _("TIFF: Couldn't allocate memory.") );
1299  
1300              TIFFClose( tif );
1301  
1302 @@ -489,7 +489,7 @@
1303          if ( TIFFWriteScanline(tif, buf ? buf : ptr, (uint32)row, 0) < 0 )
1304          {
1305              if (verbose)
1306 -                wxLogError( _("TIFF: Error writing image.") );
1307 +                wxLogError("%s", _("TIFF: Error writing image.") );
1308  
1309              TIFFClose( tif );
1310              if (buf)
1311 --- wxWidgets-2.8.12/src/common/textcmn.cpp.orig        2011-03-22 12:59:42.000000000 +0100
1312 +++ wxWidgets-2.8.12/src/common/textcmn.cpp     2012-09-30 18:39:49.751036311 +0200
1313 @@ -215,7 +215,7 @@
1314          }
1315      }
1316  
1317 -    wxLogError(_("File couldn't be loaded."));
1318 +    wxLogError("%s", _("File couldn't be loaded."));
1319  #endif // wxUSE_FFILE
1320  
1321      return false;
1322 @@ -251,7 +251,7 @@
1323      }
1324  #endif // wxUSE_FFILE
1325  
1326 -    wxLogError(_("The text couldn't be saved."));
1327 +    wxLogError("%s", _("The text couldn't be saved."));
1328  
1329      return false;
1330  }
1331 --- wxWidgets-2.8.12/src/common/wincmn.cpp.orig 2011-03-22 12:59:42.000000000 +0100
1332 +++ wxWidgets-2.8.12/src/common/wincmn.cpp      2012-09-30 18:43:17.657698645 +0200
1333 @@ -1552,7 +1552,7 @@
1334          wxValidator *validator = child->GetValidator();
1335          if ( validator && !validator->TransferToWindow() )
1336          {
1337 -            wxLogWarning(_("Could not transfer data to window"));
1338 +            wxLogWarning("%s", _("Could not transfer data to window"));
1339  #if wxUSE_LOG
1340              wxLog::FlushActive();
1341  #endif // wxUSE_LOG
1342 --- wxWidgets-2.8.12/src/common/xpmdecod.cpp.orig       2011-03-22 12:59:42.000000000 +0100
1343 +++ wxWidgets-2.8.12/src/common/xpmdecod.cpp    2012-09-30 18:44:05.621030978 +0200
1344 @@ -680,7 +680,7 @@
1345                     &width, &height, &colors_cnt, &chars_per_pixel);
1346      if ( count != 4 || width * height * colors_cnt == 0 )
1347      {
1348 -        wxLogError(_("XPM: incorrect header format!"));
1349 +        wxLogError("%s", _("XPM: incorrect header format!"));
1350          return wxNullImage;
1351      }
1352  
1353 @@ -792,7 +792,7 @@
1354              entry = clr_tbl.find(key);
1355              if ( entry == end )
1356              {
1357 -                wxLogError(_("XPM: Malformed pixel data!"));
1358 +                wxLogError("%s", _("XPM: Malformed pixel data!"));
1359  
1360                  // better return right now as otherwise we risk to flood the
1361                  // user with error messages as something seems to be seriously
1362 --- wxWidgets-2.8.12/src/generic/dcpsg.cpp.orig 2011-03-22 12:59:43.000000000 +0100
1363 +++ wxWidgets-2.8.12/src/generic/dcpsg.cpp      2012-09-30 18:47:32.884359991 +0200
1364 @@ -1583,7 +1583,7 @@
1365  
1366          if (!m_pstream)
1367          {
1368 -            wxLogError( _("Cannot open file for PostScript printing!"));
1369 +            wxLogError("%s", _("Cannot open file for PostScript printing!"));
1370              m_ok = false;
1371              return false;
1372          }
1373 --- wxWidgets-2.8.12/src/generic/logg.cpp.orig  2011-03-22 12:59:43.000000000 +0100
1374 +++ wxWidgets-2.8.12/src/generic/logg.cpp       2012-09-30 19:07:07.851002168 +0200
1375 @@ -572,7 +572,7 @@
1376          bOk = file.Close();
1377  
1378      if ( !bOk ) {
1379 -        wxLogError(_("Can't save log contents to file."));
1380 +        wxLogError("%s", _("Can't save log contents to file."));
1381      }
1382      else {
1383          wxLogStatus(this, _("Log saved to the file '%s'."), filename.c_str());
1384 @@ -1023,7 +1023,7 @@
1385          ok = file.Close();
1386  
1387      if ( !ok )
1388 -        wxLogError(_("Can't save log contents to file."));
1389 +        wxLogError("%s", _("Can't save log contents to file."));
1390  #endif // wxUSE_FILEDLG
1391  }
1392  
1393 --- wxWidgets-2.8.12/src/generic/printps.cpp.orig       2011-03-22 12:59:43.000000000 +0100
1394 +++ wxWidgets-2.8.12/src/generic/printps.cpp    2012-09-30 19:41:36.954292375 +0200
1395 @@ -178,7 +178,7 @@
1396          if (!printout->OnBeginDocument(m_printDialogData.GetFromPage(), m_printDialogData.GetToPage()))
1397          {
1398              wxEndBusyCursor();
1399 -            wxLogError(_("Could not start printing."));
1400 +            wxLogError("%s", _("Could not start printing."));
1401              sm_lastError = wxPRINTER_ERROR;
1402              break;
1403          }
1404 --- wxWidgets-2.8.12/src/unix/sound.cpp.orig    2011-03-22 13:01:28.000000000 +0100
1405 +++ wxWidgets-2.8.12/src/unix/sound.cpp 2012-09-30 20:03:09.254265441 +0200
1406 @@ -490,7 +490,7 @@
1407      Free();
1408      if (!LoadWAV(data, size, true))
1409      {
1410 -        wxLogError(_("Sound data are in unsupported format."));
1411 +        wxLogError("%s", _("Sound data are in unsupported format."));
1412          return false;
1413      }
1414      return true;
1415 --- wxWidgets-2.8.12/src/html/chm.cpp.orig      2011-03-22 12:59:44.000000000 +0100
1416 +++ wxWidgets-2.8.12/src/html/chm.cpp   2012-09-30 20:31:12.494230355 +0200
1417 @@ -798,7 +798,7 @@
1418  
1419      if ( GetProtocol(left) != _T("file") )
1420      {
1421 -        wxLogError(_("CHM handler currently supports only local files!"));
1422 +        wxLogError("%s", _("CHM handler currently supports only local files!"));
1423          return NULL;
1424      }
1425  
1426 @@ -821,7 +821,7 @@
1427      if ( (index=right.Index(_T("//"))) != wxNOT_FOUND )
1428      {
1429          right=wxString(right.Mid(index+1));
1430 -        wxLogWarning(_("Link contained '//', converted to absolute link."));
1431 +        wxLogWarning("%s", _("Link contained '//', converted to absolute link."));
1432      }
1433  
1434      wxFileName leftFilename = wxFileSystem::URLToFileName(left);
1435 @@ -859,7 +859,7 @@
1436  
1437      if ( GetProtocol(left) != _T("file") )
1438      {
1439 -        wxLogError(_("CHM handler currently supports only local files!"));
1440 +        wxLogError("%s", _("CHM handler currently supports only local files!"));
1441          return wxEmptyString;
1442      }
1443  
1444 --- wxWidgets-2.8.12/src/html/helpwnd.cpp.orig  2011-03-22 12:59:44.000000000 +0100
1445 +++ wxWidgets-2.8.12/src/html/helpwnd.cpp       2012-09-30 20:54:46.604200882 +0200
1446 @@ -1553,7 +1553,7 @@
1447                  if (m_Printer == NULL)
1448                      m_Printer = new wxHtmlEasyPrinting(_("Help Printing"), this);
1449                  if (!m_HtmlWin->GetOpenedPage())
1450 -                    wxLogWarning(_("Cannot print empty page."));
1451 +                    wxLogWarning("%s", _("Cannot print empty page."));
1452                  else
1453                      m_Printer->PrintFile(m_HtmlWin->GetOpenedPage());
1454              }
1455 --- wxWidgets-2.8.12/src/html/htmlpars.cpp.orig 2011-03-22 12:59:44.000000000 +0100
1456 +++ wxWidgets-2.8.12/src/html/htmlpars.cpp      2012-09-30 20:58:05.014196745 +0200
1457 @@ -382,7 +382,7 @@
1458  #endif // wxUSE_STL/!wxUSE_STL
1459          )
1460      {
1461 -        wxLogWarning(_("Warning: attempt to remove HTML tag handler from empty stack."));
1462 +        wxLogWarning("%s", _("Warning: attempt to remove HTML tag handler from empty stack."));
1463          return;
1464      }
1465      m_HandlersHash = *((wxHashTable*) first->GetData());
1466 --- wxWidgets-2.8.12/src/html/htmprint.cpp.orig 2011-03-22 12:59:44.000000000 +0100
1467 +++ wxWidgets-2.8.12/src/html/htmprint.cpp      2012-09-30 21:01:26.160859220 +0200
1468 @@ -307,7 +307,7 @@
1469  
1470      if (ff == NULL)
1471      {
1472 -        wxLogError(htmlfile + _(": file does not exist!"));
1473 +        wxLogError("%s", (htmlfile + _(": file does not exist!")).c_str());
1474          return;
1475      }
1476  
1477 @@ -615,7 +615,7 @@
1478  {
1479      if (!GetPrintData()->Ok())
1480      {
1481 -        wxLogError(_("There was a problem during page setup: you may need to set a default printer."));
1482 +        wxLogError("%s", _("There was a problem during page setup: you may need to set a default printer."));
1483          return;
1484      }
1485  
1486 --- wxWidgets-2.8.12/src/common/debugrpt.cpp.orig       2011-03-22 12:59:40.000000000 +0100
1487 +++ wxWidgets-2.8.12/src/common/debugrpt.cpp    2012-09-30 21:10:30.830847867 +0200
1488 @@ -206,7 +206,7 @@
1489      if ( !wxMkdir(m_dir, 0700) )
1490      {
1491          wxLogSysError(_("Failed to create directory \"%s\""), m_dir.c_str());
1492 -        wxLogError(_("Debug report couldn't be created."));
1493 +        wxLogError("%s", _("Debug report couldn't be created."));
1494  
1495          Reset();
1496      }
1497 @@ -542,7 +542,7 @@
1498  {
1499      if ( !GetFilesCount() )
1500      {
1501 -        wxLogError(_("Debug report generation has failed."));
1502 +        wxLogError("%s", _("Debug report generation has failed."));
1503  
1504          return false;
1505      }
1506 @@ -669,7 +669,7 @@
1507                         errors);
1508      if ( rc == -1 )
1509      {
1510 -        wxLogError(_("Failed to execute curl, please install it in PATH."));
1511 +        wxLogError("%s", _("Failed to execute curl, please install it in PATH."));
1512      }
1513      else if ( rc != 0 )
1514      {
1515 --- wxWidgets-2.8.12/src/xrc/xh_statbar.cpp.orig        2011-03-22 13:00:29.000000000 +0100
1516 +++ wxWidgets-2.8.12/src/xrc/xh_statbar.cpp     2012-10-01 18:20:53.155925824 +0200
1517 @@ -79,7 +79,7 @@
1518              else if (first == wxT("wxSB_RAISED"))
1519                  style[i] = wxSB_RAISED;
1520              else if (!first.empty())
1521 -                wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
1522 +                wxLogError("%s", (wxT("Error in resource, unknown statusbar field style: ") + first).c_str());
1523  
1524              if(styles.Find(wxT(',')))
1525                  styles.Remove(0, styles.Find(wxT(',')) + 1);
1526 --- wxWidgets-2.8.12/src/xrc/xmlres.cpp.orig    2011-03-22 13:00:29.000000000 +0100
1527 +++ wxWidgets-2.8.12/src/xrc/xmlres.cpp 2012-10-01 18:38:22.405903953 +0200
1528 @@ -501,7 +501,7 @@
1529                      m_version = version;
1530                  if (m_version != version)
1531                  {
1532 -                    wxLogError(_("Resource files must have same version number!"));
1533 +                    wxLogError("%s", _("Resource files must have same version number!"));
1534                      rt = false;
1535                  }
1536  
1537 @@ -863,7 +863,7 @@
1538          if (index != wxNOT_FOUND)
1539              style |= m_styleValues[index];
1540          else
1541 -            wxLogError(_("Unknown style flag ") + fl);
1542 +            wxLogError("%s", (_("Unknown style flag ") + fl).c_str());
1543      }
1544      return style;
1545  }
1546 @@ -1268,7 +1268,7 @@
1547          }
1548          else
1549          {
1550 -            wxLogError(_("Cannot convert dialog units: dialog unknown."));
1551 +            wxLogError("%s", _("Cannot convert dialog units: dialog unknown."));
1552              return wxDefaultSize;
1553          }
1554      }
1555 @@ -1316,7 +1316,7 @@
1556          }
1557          else
1558          {
1559 -            wxLogError(_("Cannot convert dialog units: dialog unknown."));
1560 +            wxLogError("%s", _("Cannot convert dialog units: dialog unknown."));
1561              return defaultv;
1562          }
1563      }
1564 --- wxWidgets-2.8.12/src/richtext/richtextctrl.cpp.orig 2011-03-22 12:59:44.000000000 +0100
1565 +++ wxWidgets-2.8.12/src/richtext/richtextctrl.cpp      2012-10-01 18:56:32.329214568 +0200
1566 @@ -2135,7 +2135,7 @@
1567          return true;
1568      else
1569      {
1570 -        wxLogError(_("File couldn't be loaded."));
1571 +        wxLogError("%s", _("File couldn't be loaded."));
1572  
1573          return false;
1574      }
1575 @@ -2152,7 +2152,7 @@
1576          return true;
1577      }
1578  
1579 -    wxLogError(_("The text couldn't be saved."));
1580 +    wxLogError("%s", _("The text couldn't be saved."));
1581  
1582      return false;
1583  }
1584 --- wxWidgets-2.8.12/src/richtext/richtextprint.cpp.orig        2011-03-22 12:59:44.000000000 +0100
1585 +++ wxWidgets-2.8.12/src/richtext/richtextprint.cpp     2012-10-01 19:03:12.205872900 +0200
1586 @@ -572,7 +572,7 @@
1587  {
1588      if (!GetPrintData()->Ok())
1589      {
1590 -        wxLogError(_("There was a problem during page setup: you may need to set a default printer."));
1591 +        wxLogError("%s", _("There was a problem during page setup: you may need to set a default printer."));
1592          return;
1593      }
1594  
This page took 0.156656 seconds and 3 git commands to generate.