You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ro...@locus.apache.org on 2000/02/22 01:36:50 UTC
cvs commit: xml-xerces/c/src/internal ReaderMgr.cpp
roddey 00/02/21 16:36:50
Modified: c/src/internal ReaderMgr.cpp
Log:
Added a new 'native XMLCh' transcoder to correctly handle
internal entities now that XMLCh isn't always UTF-16.
Revision Changes Path
1.8 +8 -1 xml-xerces/c/src/internal/ReaderMgr.cpp
Index: ReaderMgr.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/internal/ReaderMgr.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ReaderMgr.cpp 2000/02/06 07:47:53 1.7
+++ ReaderMgr.cpp 2000/02/22 00:36:50 1.8
@@ -56,6 +56,10 @@
/**
* $Log: ReaderMgr.cpp,v $
+ * Revision 1.8 2000/02/22 00:36:50 roddey
+ * Added a new 'native XMLCh' transcoder to correctly handle
+ * internal entities now that XMLCh isn't always UTF-16.
+ *
* Revision 1.7 2000/02/06 07:47:53 rahulj
* Year 2K copyright swat.
*
@@ -599,6 +603,10 @@
// This one is easy, we just create an input stream for the data and
// provide a few extra goodies.
//
+ // NOTE: We use a special encoding string that will be recognized
+ // as a 'do nothing' transcoder for the already internalized XMLCh
+ // data that makes up an internal entity.
+ //
XMLReader* retVal = new XMLReader
(
sysId
@@ -610,7 +618,7 @@
, copyBuf ? BinMemInputStream::BufOpt_Copy
: BinMemInputStream::BufOpt_Reference
)
- , XMLRecognizer::nameForEncoding(XMLRecognizer::Def_UTF16)
+ , XMLUni::fgXMLChEncodingString
, refFrom
, type
, XMLReader::Source_Internal