From 423af68e5a5ee6e59181f1f3e42446236d4cc12e Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 12 Feb 2016 20:47:11 -0200 Subject: [PATCH] Allow to use an encoded doc string in FeaturePython::addProperty --- src/App/FeaturePythonPyImp.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/FeaturePythonPyImp.inl b/src/App/FeaturePythonPyImp.inl index fb0e24df95..4fe56f046c 100644 --- a/src/App/FeaturePythonPyImp.inl +++ b/src/App/FeaturePythonPyImp.inl @@ -331,7 +331,7 @@ PyObject* FeaturePythonPyT::addProperty(PyObject *args) char *sType,*sName=0,*sGroup=0,*sDoc=0; short attr=0; PyObject *ro = Py_False, *hd = Py_False; - if (!PyArg_ParseTuple(args, "s|ssshO!O!", &sType,&sName,&sGroup,&sDoc,&attr, + if (!PyArg_ParseTuple(args, "s|ssethO!O!", &sType,&sName,&sGroup,"utf-8",&sDoc,&attr, &PyBool_Type, &ro, &PyBool_Type, &hd)) // convert args: Python->C return NULL; // NULL triggers exception