- // '%s' expands into file name (quoted because it might
- // contain spaces) - except if there are already quotes
- // there because otherwise some programs may get confused
- // by double double quotes
-#if 0
- if ( *(pc - 2) == wxT('"') )
- str << params.GetFileName();
- else
+ // don't quote the file name if it's already quoted: notice
+ // that we check for a quote following it and not preceding
+ // it as at least under Windows we can have commands
+ // containing "file://%s" (with quotes) in them so the
+ // argument may be quoted even if there is no quote
+ // directly before "%s" itself
+ if ( needToQuoteFilename && pc[1] != '"' )