diff Objects/unicodeobject.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 911df82bc25d
children 11de35da281c
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Sun May 10 08:08:56 2009 +0000
+++ b/Objects/unicodeobject.c	Sun May 10 08:15:24 2009 +0000
@@ -1549,7 +1549,7 @@
             return 0;
         output = PyUnicode_AsEncodedObject(arg, 
                                            Py_FileSystemDefaultEncoding,
-                                           "utf8b");
+                                           "surrogateescape");
         Py_DECREF(arg);
         if (!output)
             return 0;