View | Details | Raw Unified | Return to issue 14518
Collapse All | Expand All

(-)scptools/source/linker/scpzip.cxx (-1 / +7 lines)
Lines 234-240 Link Here
234
234
235
	pArgs[0] = ::rtl::OUString::createFromAscii( "-j" );
235
	pArgs[0] = ::rtl::OUString::createFromAscii( "-j" );
236
	pArgs[1] = ::rtl::OUString::createFromAscii( aCompressionParam.GetBuffer() );
236
	pArgs[1] = ::rtl::OUString::createFromAscii( aCompressionParam.GetBuffer() );
237
	pArgs[2] = ::rtl::OUString::createFromAscii( aDestination.GetFull().GetBuffer() );
237
	// Workaround for a bug in cygwin zip. Cygwins zip strippes the directories
238
	// with the -j flag only when "/" are used, not when using "\".
239
	// The InfoZip native W32 zip version 2.3 works with "\" and "/"
240
	ByteString aTMPDestination( aDestination.GetFull() );
241
	while( aTMPDestination.SearchAndReplace('\\', '/') != STRING_NOTFOUND );
242
	pArgs[2] = ::rtl::OUString::createFromAscii( aTMPDestination.GetBuffer() );
243
	while( aSource.SearchAndReplace('\\', '/') != STRING_NOTFOUND );
238
	pArgs[3] = ::rtl::OUString::createFromAscii( aSource.GetBuffer() );
244
	pArgs[3] = ::rtl::OUString::createFromAscii( aSource.GetBuffer() );
239
245
240
	NAMESPACE_VOS(OArgumentList) aArgs( pArgs, 4 );
246
	NAMESPACE_VOS(OArgumentList) aArgs( pArgs, 4 );

Return to issue 14518