diff Python/marshal.c @ 53965:fbcdae3e0ca1

Rename the surrogates error handler to surrogatepass.
author Martin v. Löwis <martin@v.loewis.de>
date Sun, 10 May 2009 08:08:56 +0000
parents 13a82a710f19
children 19e959626109
line wrap: on
line diff
--- a/Python/marshal.c	Sat May 09 19:44:56 2009 +0000
+++ b/Python/marshal.c	Sun May 10 08:08:56 2009 +0000
@@ -314,7 +314,7 @@
 	        PyObject *utf8;
 		utf8 = PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(v),
 					    PyUnicode_GET_SIZE(v),
-					    "surrogates");
+					    "surrogatepass");
 		if (utf8 == NULL) {
 			p->depth--;
 			p->error = WFERR_UNMARSHALLABLE;
@@ -809,7 +809,7 @@
 			retval = NULL;
 			break;
 		}
-		v = PyUnicode_DecodeUTF8(buffer, n, "surrogates");
+		v = PyUnicode_DecodeUTF8(buffer, n, "surrogatepass");
 		PyMem_DEL(buffer);
 		retval = v;
 		break;