You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/03/21 01:53:13 UTC

DO NOT REPLY [Bug 7303] New: - ASCII char 13 (Carriage Return) is parsed wrongly on Mac OS X

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: xerces-j-dev@xml.apache.org
        ReportedBy: hanming@apple.com


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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org