You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2008/01/10 10:08:27 UTC

svn commit: r610726 - /xerces/c/trunk/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp

Author: amassari
Date: Thu Jan 10 01:07:48 2008
New Revision: 610726

URL: http://svn.apache.org/viewvc?rev=610726&view=rev
Log:
On HP-UX, mbtowc fails when invoked with the third argument set to 0

Modified:
    xerces/c/trunk/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp

Modified: xerces/c/trunk/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp?rev=610726&r1=610725&r2=610726&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp Thu Jan 10 01:07:48 2008
@@ -519,7 +519,7 @@
     XMLCh* resultString = localBuffer;
     size_t srcLen = strlen(toTranscode);
 
-    while(true)
+    while(srcLen > srcCursor)
     {
         wchar_t wcBuf[1];
         int len = mbtowc(wcBuf, toTranscode + srcCursor, srcLen - srcCursor);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org