summaryrefslogtreecommitdiffstats
path: root/Modules/_codecsmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-12 11:00:22 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-12 11:00:22 (GMT)
commit1aa5e1d63e6452234065e73e59b9f4db2c2efdeb (patch)
tree4cfad77f3826d89c6a4ff13a39ccd8b2214c4d1a /Modules/_codecsmodule.c
parentbedbf96e848c46822f44beb264f7fbbea02e1d89 (diff)
downloadcpython-1aa5e1d63e6452234065e73e59b9f4db2c2efdeb.zip
cpython-1aa5e1d63e6452234065e73e59b9f4db2c2efdeb.tar.gz
cpython-1aa5e1d63e6452234065e73e59b9f4db2c2efdeb.tar.bz2
Fixed compilation on Windows for issue #20173.
Diffstat (limited to 'Modules/_codecsmodule.c')
-rw-r--r--Modules/_codecsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_codecsmodule.c b/Modules/_codecsmodule.c
index 0e90f3c..cf67c46 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);