correct call

This commit is contained in:
Benjamin Peterson 2010-05-07 16:42:51 +00:00
parent 97c18ab6a5
commit 02a004ea1d
1 changed files with 1 additions and 3 deletions

View File

@ -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 {