You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by bh...@apache.org on 2012/07/05 18:01:29 UTC

svn commit: r1357712 - /uima/uimacpp/trunk/src/cas/xmlerror_handler.cpp

Author: bhavani
Date: Thu Jul  5 16:01:28 2012
New Revision: 1357712

URL: http://svn.apache.org/viewvc?rev=1357712&view=rev
Log:
UIMA-2425 fix conversion of Xerces error message to native code page.

Modified:
    uima/uimacpp/trunk/src/cas/xmlerror_handler.cpp

Modified: uima/uimacpp/trunk/src/cas/xmlerror_handler.cpp
URL: http://svn.apache.org/viewvc/uima/uimacpp/trunk/src/cas/xmlerror_handler.cpp?rev=1357712&r1=1357711&r2=1357712&view=diff
==============================================================================
--- uima/uimacpp/trunk/src/cas/xmlerror_handler.cpp (original)
+++ uima/uimacpp/trunk/src/cas/xmlerror_handler.cpp Thu Jul  5 16:01:28 2012
@@ -67,7 +67,7 @@ namespace uima {
     msg.addParam( (UChar const *) e.getSystemId());
     msg.addParam(e.getLineNumber());
     msg.addParam(e.getColumnNumber());
-    msg.addParam( (UChar const *) e.getMessage());
+    msg.addParam(XMLString::transcode(e.getMessage()));
     errInfo.setMessage(msg);
     errInfo.setSeverity(ErrorInfo::unrecoverable);
     ExcIllFormedInputError exc(errInfo);
@@ -82,7 +82,7 @@ namespace uima {
     msg.addParam( (UChar const *) e.getSystemId());
     msg.addParam(e.getLineNumber());
     msg.addParam(e.getColumnNumber());
-    msg.addParam( (UChar const *) e.getMessage());
+	msg.addParam(XMLString::transcode(e.getMessage()));
     errInfo.setMessage(msg);
     errInfo.setSeverity(ErrorInfo::unrecoverable);
     ExcIllFormedInputError exc(errInfo);
@@ -97,7 +97,7 @@ namespace uima {
     msg.addParam( (UChar const *) e.getSystemId());
     msg.addParam(e.getLineNumber());
     msg.addParam(e.getColumnNumber());
-    msg.addParam( (UChar const *) e.getMessage());
+    msg.addParam(XMLString::transcode(e.getMessage()));
     errInfo.setMessage(msg);
     errInfo.setSeverity(ErrorInfo::unrecoverable);
     ExcIllFormedInputError exc(errInfo);