mirror of
https://github.com/python/cpython.git
synced 2025-07-14 14:55:17 +00:00
Rename utf8b error handler to surrogateescape.
This commit is contained in:
parent
e0a2b72e61
commit
43c57785d3
9 changed files with 30 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue