Bug #18101 2011-05-08 06:58

duanev

rpmbuild fails: format not a string literal and no format ar

I downloaded the source rpm codeblocks-10.05-0.mdv2010.src.rpm on mdv2010.0 32 bit.  Then ran rpmbuild -ba codeblocks.spec

I encountered quite a few of the same error from difference plugin modules - the error is "format not a string literal and no format arguments" and appears to be caused by missing _() and _T() macros as well as other problems.

One of the places that cause this error is:
src/plugins/scriptedwizard/wiz.cpp:768

which looks like this:
          query_overwrite.Printf(
              _T("Warning:\n")
              _T("The wizard is about OVERWRITE the following existing file:\n")+
              wxFileName(dstfile).GetFullPath()+_T("\n\n")+
              _T("Are you sure that you want to OVERWRITE the file?\n\n")+
--->          _T("(If you answer 'No' the existing file will be kept.)"));

There appears to be a missing '+' after the first _T() string segment... is this part of a work in progress?

Others are:
src/plugins/contrib/codesnippets/codesnippetswindow.cpp:1265
src/contrib/source_exporter/wxPdfDocument/src/pdfcolor.cpp:314, 387, 444
src/plugins/contrib/wxSmith/propgrid/contrib/src/propgrid/propgrid.cpp: 803

and many more.

Category
Compiler
Group
 
Status
Open
Close date
 
Assigned to