From: Vadim Zeitlin Date: Mon, 31 Jan 2005 22:17:18 +0000 (+0000) Subject: enclose zip arguments in quotes, fixes behaviour for paths which contain spaces ... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be575a01602461b291a47e178272aaf0c673c818?ds=inline enclose zip arguments in quotes, fixes behaviour for paths which contain spaces (fixed patch 1092970) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index ee564daaae..b487d6bd17 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -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) {