From: Benjamin Peterson Date: Thu, 18 Aug 2011 18:51:47 +0000 (-0500) Subject: the named of the character is actually NUL X-Git-Tag: v3.2.3rc1~647 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a6b44ab6275aeeb8959437f10ae9ca17aa0b2e4;p=thirdparty%2FPython%2Fcpython.git the named of the character is actually NUL --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1f2d91913ede..77f8dd5a810e 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1897,7 +1897,7 @@ PyUnicode_FSConverter(PyObject* arg, void* addr) size = PyBytes_GET_SIZE(output); data = PyBytes_AS_STRING(output); if (size != strlen(data)) { - PyErr_SetString(PyExc_TypeError, "embedded NULL character"); + PyErr_SetString(PyExc_TypeError, "embedded NUL character"); Py_DECREF(output); return 0; }