diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3740892e67..3bd1efd939 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1549,7 +1549,7 @@ PyUnicode_FSConverter(PyObject* arg, void* addr) return 0; output = PyUnicode_AsEncodedObject(arg, Py_FileSystemDefaultEncoding, - "utf8b"); + "surrogateescape"); Py_DECREF(arg); if (!output) return 0; |