Don't mangle the output filename

Attached patch works for me, and shouldn't affect any other option
processing.
This commit is contained in:
Paul Howarth 2011-07-26 14:31:36 +02:00 committed by Matěj Cepl
parent 4ffd0fad63
commit baad0b0064

View file

@ -929,7 +929,10 @@ Bool TY_(ParseConfigValue)( TidyDocImpl* doc, TidyOptionId optId, ctmbstr optval
TidyBuffer inbuf; /* Set up input source */ TidyBuffer inbuf; /* Set up input source */
tidyBufInitWithAllocator( &inbuf, doc->allocator ); tidyBufInitWithAllocator( &inbuf, doc->allocator );
tidyBufAttach( &inbuf, (byte*)optval, TY_(tmbstrlen)(optval)+1 ); tidyBufAttach( &inbuf, (byte*)optval, TY_(tmbstrlen)(optval)+1 );
doc->config.cfgIn = TY_(BufferInput)( doc, &inbuf, ASCII ); if (optId == TidyOutFile)
doc->config.cfgIn = TY_(BufferInput)( doc, &inbuf, RAW );
else
doc->config.cfgIn = TY_(BufferInput)( doc, &inbuf, ASCII );
doc->config.c = GetC( &doc->config ); doc->config.c = GetC( &doc->config );
status = option->parser( doc, option ); status = option->parser( doc, option );