commit | 7c587bf53d67ef0e279e471ac6d52d5087f4b3e8 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Mon Apr 19 18:52:43 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Mon Apr 19 18:52:43 2010 +0000 |
tree | 47441dac0ca51451071740cc30d3507b84edea71 | |
parent | 35b76027f94b12911cc97f960ebbb3c137d10d2b [diff] [blame] |
Issue #8438: Remove reference to the missing "surrogateescape" encoding error handler from the new IO library.
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index ec320f7..af98fd0 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c
@@ -248,7 +248,7 @@ return -1; stringobj = PyUnicode_AsEncodedString( - u, Py_FileSystemDefaultEncoding, "surrogateescape"); + u, Py_FileSystemDefaultEncoding, NULL); Py_DECREF(u); if (stringobj == NULL) return -1;