From: Serhiy Storchaka Date: Tue, 12 May 2015 11:00:22 +0000 (+0300) Subject: Fixed compilation on Windows for issue #20173. X-Git-Tag: v3.5.0b1~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1aa5e1d63e6452234065e73e59b9f4db2c2efdeb;p=thirdparty%2FPython%2Fcpython.git Fixed compilation on Windows for issue #20173. --- diff --git a/Modules/_codecsmodule.c b/Modules/_codecsmodule.c index 0e90f3c9c6f1..cf67c462e793 100644 --- a/Modules/_codecsmodule.c +++ b/Modules/_codecsmodule.c @@ -644,7 +644,7 @@ _codecs_code_page_decode_impl(PyModuleDef *module, int codepage, /*[clinic end generated code: output=4318e3d9971e31ba input=4f3152a304e21d51]*/ { Py_ssize_t consumed = data->len; - PyObject *decoded = PyUnicode_DecodeCodePageStateful(code_page, + PyObject *decoded = PyUnicode_DecodeCodePageStateful(codepage, data->buf, data->len, errors, final ? NULL : &consumed);