axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r744268 - /webservices/axis/trunk/c/src/platforms/PlatformLanguageUtils.cpp
Date Fri, 13 Feb 2009 22:35:25 GMT
Author: nadiramra
Date: Fri Feb 13 22:35:25 2009
New Revision: 744268

URL: http://svn.apache.org/viewvc?rev=744268&view=rev
Log:
AXISCPP-964 SOAP request/response not UTF-8 encoded (but claims to be)
AXISCPP-856 Add Platform Services Abstraction Layer

Modified:
    webservices/axis/trunk/c/src/platforms/PlatformLanguageUtils.cpp

Modified: webservices/axis/trunk/c/src/platforms/PlatformLanguageUtils.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/platforms/PlatformLanguageUtils.cpp?rev=744268&r1=744267&r2=744268&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/platforms/PlatformLanguageUtils.cpp (original)
+++ webservices/axis/trunk/c/src/platforms/PlatformLanguageUtils.cpp Fri Feb 13 22:35:25 2009
@@ -47,8 +47,7 @@
 	wchar_t *outBuffer = new wchar_t[charLen];
 	
 	// Now call wide-character function to convert string to wide-character.
-	mbstate_t mbstate = 0;
-	size_t nbrGenerated = mbsrtowcs(outBuffer, &charBuf, charLen, &mbstate);
+	size_t nbrGenerated = mbstowcs(outBuffer, charBuf, charLen);
 	
 	if (nbrGenerated == (size_t)-1)
 	{
@@ -81,8 +80,7 @@
 	char *outBuffer = new char[bufLen];
 	
 	// Now call wide-character function to convert wide-character to character string.
-	mbstate_t mbstate = 0;
-	size_t nbrGenerated = wcsrtombs(outBuffer, &wcharBuf, bufLen, &mbstate);
+	size_t nbrGenerated = wcstombs(outBuffer, wcharBuf, bufLen);
 	
 	if (nbrGenerated == (size_t)-1)
 	{



Mime
View raw message