You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2003/07/21 22:18:30 UTC
DO NOT REPLY [Bug 21780] New: -
Surrogate characters mishandled by SAXPrint and SAX2Print.
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=21780>.
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=21780
Surrogate characters mishandled by SAXPrint and SAX2Print.
Summary: Surrogate characters mishandled by SAXPrint and
SAX2Print.
Product: Xerces-C++
Version: Nightly build (please specify the date)
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Samples/Tests
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: mrglavas@apache.org
>From local CYGWIN build from CVS head (July 21, 2003):
The SAXPrint and SAX2Print samples write supplemental characters as character
references of their high and low surrogates. It looks like the problem might be
in framework/XMLFormatter, as I don't see any code in there that checks for
surrogates. If this is where the problem is, I would guess that the DOMWriter
exhibits the same behaviour.
Here's an example...
Input to SAXPrint:
<?xml version="1.0" encoding="UTF-8"?>
<root>𐀀</root>
Output from SAXPrint:
<?xml version="1.0" encoding="LATIN1"?>
<root>����</root>
The surrogate characters (xD800-xDFFF) are not part of Char, and thus those
char refs are illegal.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org