# HG changeset patch # User andy simpson # Date 1288001562 -3600 # Node ID 4bd2599cdfb560c9a3495a946dbe4bd12f54e150 # Parent 4af8d751971433f958fc7711cf88b17fe0c40390# Parent e818d2a017cc2220ca6c740cdcc6daf28b9cdd30 re-merge work-a-round for Bug 1414 diff -r 4af8d7519714 -r 4bd2599cdfb5 gfxconversion/mifconv/src/mifconv_iconbinaryconverter.cpp --- a/gfxconversion/mifconv/src/mifconv_iconbinaryconverter.cpp Wed Oct 13 15:10:45 2010 +0300 +++ b/gfxconversion/mifconv/src/mifconv_iconbinaryconverter.cpp Mon Oct 25 11:12:42 2010 +0100 @@ -247,7 +247,7 @@ // Build temp filename by replacing dir separator and ':' chars with '_': MifConvString tmpFileName(i->Filename()); ConvertToBinaryFilename(tmpFileName); - + // Copy source file to temp directory: MifConvString to(iTempDir + tmpFileName); if( MifConvUtil::CopyFile(i->Filename(), to) == false ) @@ -259,9 +259,11 @@ // enclosed with quotation marks. If the whole string is enclosed with quotation marks then it works... // For example: command '"\epoc32\tools\bmconv" "somefile"' does not work while command // '""\epoc32\tools\bmconv" "somefile""' does. - + cout << "Mifconvdebugging - executing" << MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str() << endl; + if( system(MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str()) < 0 ) { + cout << "Mifconvdebugging - failed to execute" << MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str() << endl; int ernro = errno; // The error number must check straight away before any next system command MifConvString errStr("Executing SVGTBINENCODE failed");