DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7303>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7303

ASCII char 13 (Carriage Return) is parsed wrongly on Mac OS X

           Summary: ASCII char 13 (Carriage Return) is parsed wrongly on Mac
                    OS X
           Product: Xerces2-J
           Version: 2.0.1
          Platform: Macintosh
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The ASCII character 13 ((Carriage Return) is parsed as the ASCII 
character 10 (Linefeed) on the Mac OS X platform.

I have an example XML file in this URL:

http://homepage.mac.com/hanming/.Pictures/example.xml

In it, you will find a very simple element <data> which contains a string of 
unparsed data, similar to what you see here:

<data>
 <![CDATA[ I love you
� ]]> 
</data>

But what is not visible to the eye is that there is a CR character right after 
"you".  You can use emacs, od, hexdump or whatever that is available to 
you to confirm it.

However using Xerces to parse it returns the CR character as an LF 
character. I tested using Xerces 1.4.4 and Xerces 2.0.1. Both failed.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to