[Expat-bugs] [ expat-Bugs-1162302 ] Fault CharacterDataHandler if LF starts data

SourceForge.net noreply at sourceforge.net
Sun Mar 13 14:54:00 CET 2005


Bugs item #1162302, was opened at 2005-03-13 00:26
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1162302&group_id=10127

Category: None
Group: Not a Bug
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fault CharacterDataHandler if LF starts data

Initial Comment:
When a tag's data start with LF (0x0A), I get 
XML_CharacterDataHandler with len=1 and s=0x0A 
instead of the actual data that comes after the LF.

On the attached example I get the following calls to 
XML_CharacterDataHandler :
- len =1, s=0x0A
- len=6, s="closed"
- len =1, s=0x0A
- len =1, s=0x0A
The last two calls for the function are problematic - I 
don't get the actual data that comes after the LF.

The problem happens when the tag's data start with LF 
but has more characters after the LF.

on Expat-1.95.8 created from 
expat_win32bin_1_95_8.exe


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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2005-03-13 08:54

Message:
Logged In: YES 
user_id=290026

Your attached example does not have any LF directly
before or after the string "closed". Please clarify your problem.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1162302&group_id=10127


More information about the Expat-bugs mailing list