[ expat-Patches-461763 ] BOM and ExternalSubset

noreply@sourceforge.net noreply@sourceforge.net
Thu May 9 18:27:03 2002


Patches item #461763, was opened at 2001-09-15 00:36
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=461763&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Gilles Marichal (gilou)
Assigned to: Nobody/Anonymous (nobody)
Summary: BOM and  ExternalSubset

Initial Comment:

Hello,
Expat parsing failed when the file to parse had an 
external subset starting with a BOM.
Adding the following two lines at the start of 
function externalSubset0 in xmlrole.c fixes the 
problem:

  if (tok == XML_TOK_BOM)
    return XML_ROLE_NONE;

Note: while correcting that problem, I looked in the 
xmlrole.c file the others parts of the code handling 
the XML_TOK_BOM token. I'd like to know the rationale 
for handling it in prolog1 (wouldn't it always be 
handled in prolog0 only?).

G. Marichal






----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-05-09 21:26

Message:
Logged In: YES 
user_id=290026

It seems this is related to bug # 551852.
In this bug, as well as in patch #551599,
a fix has been proposed as well.

Karl

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=461763&group_id=10127