]> git.pld-linux.org Git - packages/wxWidgets.git/commitdiff
- more (workarounds only this time)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Sep 2012 06:21:31 +0000 (08:21 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Sep 2012 06:21:31 +0000 (08:21 +0200)
wxWidgets-format.patch

index d08662c33219ad75b9a23303ccdc12b8aa508289..7f912847de4c6efa5770a51804d03c76b23ec876 100644 (file)
@@ -9,3 +9,59 @@
  
          // normally wxLogFatalError doesn't return
          return false;
+--- wxWidgets-2.8.12/src/common/file.cpp.orig  2011-03-22 12:59:40.000000000 +0100
++++ wxWidgets-2.8.12/src/common/file.cpp       2012-09-30 08:19:02.785145988 +0200
+@@ -513,7 +513,7 @@
+     if ( chmod( (const char*) m_strTemp.fn_str(), mode) == -1 )
+     {
+ #ifndef __OS2__
+-        wxLogSysError(_("Failed to set temporary file permissions"));
++        wxLogSysError("%s", _("Failed to set temporary file permissions"));
+ #endif
+     }
+ #endif // Unix
+--- wxWidgets-2.8.12/src/common/fileconf.cpp.orig      2011-03-22 12:59:41.000000000 +0100
++++ wxWidgets-2.8.12/src/common/fileconf.cpp   2012-09-30 08:20:45.761810510 +0200
+@@ -508,7 +508,7 @@
+             if ( err != wxSTREAM_NO_ERROR && err != wxSTREAM_EOF )
+             {
+-                wxLogError(_("Error reading config options."));
++                wxLogError("%s", _("Error reading config options."));
+                 break;
+             }
+         }
+@@ -1043,7 +1043,7 @@
+   if ( !file.IsOpened() )
+   {
+-    wxLogError(_("can't open user configuration file."));
++    wxLogError("%s", _("can't open user configuration file."));
+     return false;
+   }
+@@ -1057,13 +1057,13 @@
+   if ( !file.Write(filetext, *m_conv) )
+   {
+-    wxLogError(_("can't write user configuration file."));
++    wxLogError("%s", _("can't write user configuration file."));
+     return false;
+   }
+   if ( !file.Commit() )
+   {
+-      wxLogError(_("Failed to update user configuration file."));
++      wxLogError("%s", _("Failed to update user configuration file."));
+       return false;
+   }
+@@ -1090,7 +1090,7 @@
+         wxCharBuffer buf(line.mb_str(conv));
+         if ( !os.Write(buf, strlen(buf)) )
+         {
+-            wxLogError(_("Error saving user configuration data."));
++            wxLogError("%s", _("Error saving user configuration data."));
+             return false;
+         }
This page took 0.034026 seconds and 4 git commands to generate.