pyuno/source/module/pyuno_util.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 669f0da19beb577ffded49b2678f4968aa35b5c0
Author: Rene Engelhard <[email protected]>
Date:   Mon Nov 26 13:48:58 2012 +0100

    use correct PyString_Size for python2
    
    This reverts commit 8ea4657f64e7575696be4bba5b2a4309ac029ae4.
    
    Conflicts:
        pyuno/source/module/pyuno_util.cxx
    
    Change-Id: I252688b72610864613ceb80aac9030062e63fdac

diff --git a/pyuno/source/module/pyuno_util.cxx 
b/pyuno/source/module/pyuno_util.cxx
index da311cd..6d56279 100644
--- a/pyuno/source/module/pyuno_util.cxx
+++ b/pyuno/source/module/pyuno_util.cxx
@@ -86,8 +86,7 @@ OUString pyString2ustring( PyObject *pystr )
     ret = OUString(pUtf8, size, RTL_TEXTENCODING_UTF8);
 #else
     PyObject* pUtf8 = PyUnicode_AsUTF8String(pystr);
-    char *pStr = PyStr_AsString(pUtf8);
-    ret = OUString(pStr, strlen(pStr), RTL_TEXTENCODING_UTF8);
+    ret = OUString(PyStr_AsString(pUtf8), PyString_Size(pUtf8), 
RTL_TEXTENCODING_UTF8);
     Py_DECREF(pUtf8);
 #endif
 #endif
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to