]> granicus.if.org Git - python/commitdiff
Fixed compilation on Windows for issue #20173.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 12 May 2015 11:00:22 +0000 (14:00 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 12 May 2015 11:00:22 +0000 (14:00 +0300)
Modules/_codecsmodule.c

index 0e90f3c9c6f16efb374a0f24c32add9b4a231214..cf67c462e7934e26ce34e3a27d87335af62e44f4 100644 (file)
@@ -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);