Kaydet (Commit) 1aa5e1d6 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fixed compilation on Windows for issue #20173.

üst bedbf96e
...@@ -644,7 +644,7 @@ _codecs_code_page_decode_impl(PyModuleDef *module, int codepage, ...@@ -644,7 +644,7 @@ _codecs_code_page_decode_impl(PyModuleDef *module, int codepage,
/*[clinic end generated code: output=4318e3d9971e31ba input=4f3152a304e21d51]*/ /*[clinic end generated code: output=4318e3d9971e31ba input=4f3152a304e21d51]*/
{ {
Py_ssize_t consumed = data->len; Py_ssize_t consumed = data->len;
PyObject *decoded = PyUnicode_DecodeCodePageStateful(code_page, PyObject *decoded = PyUnicode_DecodeCodePageStateful(codepage,
data->buf, data->len, data->buf, data->len,
errors, errors,
final ? NULL : &consumed); final ? NULL : &consumed);
......
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