Bug 691641

Summary: pdfdraw generates invalid xml trace
Product: MuPDF Reporter: Kenny Ostrom <kennyostrom>
Component: appsAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---

Description Kenny Ostrom 2010-09-23 18:09:05 UTC
in res_text.c r2070
the function "fz_debugtext" outputs a character with 
printf("<g ucs=\"%c\" ...
but the character could be '"' 

it MUST output a string which is either the character or its xml escaped value, which would be "&quot;" in this example.
Comment 1 Kenny Ostrom 2010-09-23 21:43:33 UTC
duplicate of 691669 which is marked fixed, but it

*** This bug has been marked as a duplicate of bug 691559 ***
Comment 2 Tor Andersson 2010-09-24 07:16:16 UTC
The function fz_debugtext calls isxmlmeta to test whether to print a character verbatim (only for printable ascii non-xml-meta-characters) or with the U+ escaped unicode syntax. (") is tested as a meta character.