Commit d2aed08e authored by Benjamin Peterson's avatar Benjamin Peterson

correct call

parent 761a495e
...@@ -49,9 +49,7 @@ static void ...@@ -49,9 +49,7 @@ static void
sets(PyObject *v, int i, const char* val) sets(PyObject *v, int i, const char* val)
{ {
if (val) { if (val) {
PyObject *o = PyUnicode_DecodeFSDefault(val, strlen(val), PyObject *o = PyUnicode_DecodeFSDefault(val);
Py_FileSystemDefaultEncoding,
"surrogateescape");
PyStructSequence_SET_ITEM(v, i, o); PyStructSequence_SET_ITEM(v, i, o);
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment