You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2013/09/06 13:55:38 UTC
svn commit: r1520552 -
/qpid/trunk/qpid/cpp/include/qpid/swig_python_typemaps.i
Author: gsim
Date: Fri Sep 6 11:55:38 2013
New Revision: 1520552
URL: http://svn.apache.org/r1520552
Log:
QPID-5104: fix for python 2.4
Modified:
qpid/trunk/qpid/cpp/include/qpid/swig_python_typemaps.i
Modified: qpid/trunk/qpid/cpp/include/qpid/swig_python_typemaps.i
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/swig_python_typemaps.i?rev=1520552&r1=1520551&r2=1520552&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/swig_python_typemaps.i (original)
+++ qpid/trunk/qpid/cpp/include/qpid/swig_python_typemaps.i Fri Sep 6 11:55:38 2013
@@ -122,7 +122,7 @@ typedef int Py_ssize_t;
case qpid::types::VAR_STRING : {
const std::string val(v->asString());
if (v->getEncoding() == "utf8")
- result = PyUnicode_FromStringAndSize(val.c_str(), val.size());
+ result = PyUnicode_DecodeUTF8(val.c_str(), val.size(), NULL);
else
result = PyString_FromStringAndSize(val.c_str(), val.size());
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org