[Python-checkins] cpython: Fixed compilation on Windows for issue #20173.

serhiy.storchaka python-checkins at python.org
Tue May 12 13:01:00 CEST 2015


https://hg.python.org/cpython/rev/39df27d97901
changeset:   95977:39df27d97901
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue May 12 14:00:22 2015 +0300
summary:
  Fixed compilation on Windows for issue #20173.

files:
  Modules/_codecsmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_codecsmodule.c b/Modules/_codecsmodule.c
--- a/Modules/_codecsmodule.c
+++ b/Modules/_codecsmodule.c
@@ -644,7 +644,7 @@
 /*[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);

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list