You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2002/03/12 20:08:29 UTC
cvs commit: xml-xerces/c/src/xercesc/util TransService.cpp
peiyongz 02/03/12 11:08:29
Modified: c/src/xercesc/util TransService.cpp
Log:
Bug# 1687: resValue not always updated when making a transcoder,
patch from mark_russell@csgsystems.com
Revision Changes Path
1.3 +9 -2 xml-xerces/c/src/xercesc/util/TransService.cpp
Index: TransService.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/TransService.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TransService.cpp 5 Feb 2002 13:11:45 -0000 1.2
+++ TransService.cpp 12 Mar 2002 19:08:29 -0000 1.3
@@ -55,7 +55,7 @@
*/
/*
- * $Id: TransService.cpp,v 1.2 2002/02/05 13:11:45 tng Exp $
+ * $Id: TransService.cpp,v 1.3 2002/03/12 19:08:29 peiyongz Exp $
*/
// ---------------------------------------------------------------------------
// Includes
@@ -200,7 +200,11 @@
// If we found it, then call the factory method for it
if (ourMapping)
- return ourMapping->makeNew(blockSize);
+ {
+ XMLTranscoder* temp = ourMapping->makeNew(blockSize);
+ resValue = temp ? XMLTransService::Ok : XMLTransService::InternalFailure;
+ return temp;
+ }
//
// For now, we have a little list of encodings that we disallow
@@ -214,7 +218,10 @@
{
// If its one of our guys, then pretend we don't understand it
if (!XMLString::compareString(upBuf, gDisallowList[index]))
+ {
+ resValue = XMLTransService::UnsupportedEncoding;
return 0;
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org