mirror of https://github.com/python/cpython.git
correct call
This commit is contained in:
parent
97c18ab6a5
commit
02a004ea1d
|
@ -49,9 +49,7 @@ static void
|
|||
sets(PyObject *v, int i, const char* val)
|
||||
{
|
||||
if (val) {
|
||||
PyObject *o = PyUnicode_DecodeFSDefault(val, strlen(val),
|
||||
Py_FileSystemDefaultEncoding,
|
||||
"surrogateescape");
|
||||
PyObject *o = PyUnicode_DecodeFSDefault(val);
|
||||
PyStructSequence_SET_ITEM(v, i, o);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue