mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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
|
@ -245,7 +245,7 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds)
|
|||
return -1;
|
||||
|
||||
stringobj = PyUnicode_AsEncodedString(
|
||||
u, Py_FileSystemDefaultEncoding, "utf8b");
|
||||
u, Py_FileSystemDefaultEncoding, "surrogateescape");
|
||||
Py_DECREF(u);
|
||||
if (stringobj == NULL)
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue