Mercurial > cpython-lru_cache-weakref
diff Modules/python.c @ 53966:7c29bfbfd352
Rename utf8b error handler to surrogateescape.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 10 May 2009 08:15:24 +0000 |
| parents | ac209f132b17 |
| children | ec5d228a83ef |
line wrap: on
line diff
--- a/Modules/python.c Sun May 10 08:08:56 2009 +0000 +++ b/Modules/python.c Sun May 10 08:15:24 2009 +0000 @@ -42,7 +42,7 @@ return res; PyMem_Free(res); } - /* Conversion failed. Fall back to escaping with utf8b. */ + /* Conversion failed. Fall back to escaping with surrogateescape. */ #ifdef HAVE_MBRTOWC /* Try conversion with mbrtwoc (C99), and escape non-decodable bytes. */
