From: Skip Montanaro Date: Mon, 6 Aug 2007 20:55:47 +0000 (+0000) Subject: One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the... X-Git-Tag: v3.0a1~517 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3b10f4c4ce753c8e6c93bffe31cf110b4984b60;p=thirdparty%2FPython%2Fcpython.git One char->Py_UNICODE change missed in r56777 - according to Adam Hupp this is the change to make... --- diff --git a/Modules/_csv.c b/Modules/_csv.c index f9d39ae70f3f..b0acc58a2056 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -169,14 +169,14 @@ get_string(PyObject *str) } static PyObject * -get_nullchar_as_None(char c) +get_nullchar_as_None(Py_UNICODE c) { if (c == '\0') { Py_INCREF(Py_None); return Py_None; } else - return PyUnicode_DecodeASCII((char*)&c, 1, NULL); + return PyUnicode_FromUnicode((Py_UNICODE *)&c, 1); } static PyObject *