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 *"?)
This commit is contained in:
parent
428b413aaa
commit
c3389997d4
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue