strings
This commit is contained in:
parent
12f93e10d3
commit
a601d3ebb3
@ -32,7 +32,9 @@ static PyObject *s_to_python(const char *s, bool eval, PyObject *p0) {
|
||||
Py_INCREF(o);
|
||||
return CHECKNULL(YAP_MkStringTerm(s), o);
|
||||
} else {
|
||||
PyObject *pobj = PyUnicode_DecodeUTF8(s, strlen(s), NULL);
|
||||
//char *ns = Py_Malloc(strlen(s)+1);
|
||||
///strcpy(ns,s);
|
||||
PyObject *pobj = PyUnicode_FromString(s);
|
||||
return pobj;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user