diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-05-10 08:15:24 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-05-10 08:15:24 (GMT) |
commit | 43c57785d3319249c03c3fa46c9df42a8ccd3e52 (patch) | |
tree | 199d57826897ac525b4057253a82aaaefcb6ef82 /Modules/_io | |
parent | e0a2b72e61a474dceb948be57cb2983f70ab07fb (diff) | |
download | cpython-43c57785d3319249c03c3fa46c9df42a8ccd3e52.zip cpython-43c57785d3319249c03c3fa46c9df42a8ccd3e52.tar.gz cpython-43c57785d3319249c03c3fa46c9df42a8ccd3e52.tar.bz2 |
Rename utf8b error handler to surrogateescape.
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 164f7e4..555dc12 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -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; |