Kicad: bug fix: in zip project command: filenames are now quoted in command string. Previously if files have space or other exotic character in name, zip fails.

This commit is contained in:
jean-pierre charras 2011-01-28 20:15:52 +01:00
parent 3e0921eafa
commit 021becb426
1 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
};
wxString cmd = wxT( "-o " ); // run minizip with option -o (overwrite)
cmd += zip.GetFullPath();
cmd += QuoteFullPath(zip);
wxString currdirname = wxT( "." );
currdirname += zip.GetPathSeparator();
@ -153,9 +153,9 @@ void WinEDA_MainFrame::OnArchiveFiles( wxCommandEvent& event )
while( cont )
{
wxFileName fn( f );
cmd += wxT( " " );
cmd += fn.GetFullName();
PrintMsg( _( "Compress file " ) + fn.GetFullName() + wxT( "\n" ) );
wxString filename = QuoteFullPath(fn);
cmd += wxT( " " ) + filename;
PrintMsg( _( "Archive file " ) + filename + wxT( "\n" ) );
cont = dir.GetNext( &f );
}
}