[Python-checkins] cpython (3.3): Issue #8271: Fix compilation on Windows
victor.stinner
python-checkins at python.org
Mon Nov 5 00:00:40 CET 2012
http://hg.python.org/cpython/rev/96f4cee8ea5e
changeset: 80253:96f4cee8ea5e
branch: 3.3
parent: 80251:3b4f2f9272b4
user: Victor Stinner <victor.stinner at gmail.com>
date: Sun Nov 04 23:59:15 2012 +0100
summary:
Issue #8271: Fix compilation on Windows
files:
Objects/stringlib/codecs.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h
--- a/Objects/stringlib/codecs.h
+++ b/Objects/stringlib/codecs.h
@@ -93,13 +93,13 @@
if (ch < 0xE0) {
/* \xC2\x80-\xDF\xBF -- 0080-07FF */
+ Py_UCS4 ch2;
if (ch < 0xC2) {
/* invalid sequence
\x80-\xBF -- continuation byte
\xC0-\xC1 -- fake 0000-007F */
goto InvalidStart;
}
- Py_UCS4 ch2;
if (end - s < 2) {
/* unexpected end of data: the caller will decide whether
it's an error or not */
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list