Commit c3389997 authored by Fredrik Lundh's avatar Fredrik Lundh

SF#1389809

cast first PyUnicode_Decode argument to proper type (why is
"char *" used for encoded byte streams, btw?  shouldn't that
be "void *" or, if necessary, "unsigned char *"?)
parent 428b413a
...@@ -2146,7 +2146,7 @@ expat_unknown_encoding_handler(XMLParserObject *self, const XML_Char *name, ...@@ -2146,7 +2146,7 @@ expat_unknown_encoding_handler(XMLParserObject *self, const XML_Char *name,
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
s[i] = i; s[i] = i;
u = PyUnicode_Decode(s, 256, name, "replace"); u = PyUnicode_Decode((char*) s, 256, name, "replace");
if (!u) if (!u)
return XML_STATUS_ERROR; return XML_STATUS_ERROR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment