This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hupp
Recipients
Date 2007-08-05.16:39:08
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Skip,
I think the error you're seeing is being caused by a conversion from Py_UNICODE -> char -> unicode through get_nullchar_as_None.  That function should look like this:

static PyObject *
get_nullchar_as_None(Py_UNICODE c)
{
        if (c == '\0') {
                Py_INCREF(Py_None);
                return Py_None;
        }
        else
            return PyUnicode_FromUnicode((Py_UNICODE*)&c, 1);
}

Unfortunately I'm on the road right now so I can't test it.

Is there something I need to do with my build to trigger those assertions?  I didn't see them.
History
Date User Action Args
2007-08-23 15:59:33adminlinkissue1767398 messages
2007-08-23 15:59:33admincreate