]> git.saurik.com Git - wxWidgets.git/commitdiff
enclose zip arguments in quotes, fixes behaviour for paths which contain spaces ...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jan 2005 22:17:18 +0000 (22:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Jan 2005 22:17:18 +0000 (22:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/wxrc/wxrc.cpp

index ee564daaae9e8a6c3fffb37a3d5834cdce6dfb7e..b487d6bd17e376be37a579eda9884fb73fad7a8a 100644 (file)
@@ -485,8 +485,8 @@ void XmlResApp::MakePackageZIP(const wxArrayString& flist)
     wxString cwd = wxGetCwd();
     wxSetWorkingDirectory(parOutputPath);
     int execres = wxExecute(_T("zip -9 -j ") +
-                            wxString(flagVerbose ? _T("") : _T("-q ")) +
-                            parOutput + _T(" ") + files, true);
+                            wxString(flagVerbose ? _T("\"") : _T("-q \"")) +
+                            parOutput + _T("\" ") + files, true);
     wxSetWorkingDirectory(cwd);
     if (execres == -1)
     {