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
This commit is contained in:
Vadim Zeitlin 2005-01-31 22:17:18 +00:00
parent d5a93fda41
commit be575a0160

View 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)
{