tng 2003/02/04 13:22:21 Modified: c/src/xercesc/internal WFXMLScanner.cpp Log: Check second surrogate error even when we reach cdata close tag Revision Changes Path 1.7 +5 -1 xml-xerces/c/src/xercesc/internal/WFXMLScanner.cpp Index: WFXMLScanner.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/WFXMLScanner.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- WFXMLScanner.cpp 6 Jan 2003 19:44:57 -0000 1.6 +++ WFXMLScanner.cpp 4 Feb 2003 21:22:21 -0000 1.7 @@ -1749,6 +1749,10 @@ // sequence. if (nextCh == chCloseSquare && fReaderMgr.skippedString(CDataClose)) { + // make sure we were not expecting a trailing surrogate. + if (gotLeadingSurrogate) + emitError(XMLErrs::Expected2ndSurrogateChar); + // If we have a doc handler, call it if (fDocHandler) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]