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)
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue