commit | 3326cb6a36c6f2545d19d4cc29d5225223c2a3a2 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Nov 10 20:15:25 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Nov 10 20:15:25 2011 +0100 |
tree | 29b89ec47f2fca1beb7d0f59263c51a9876e0f1d | |
parent | 0e36826a045d4a7c5ea3df5438b522dbfc8afa9b [diff] |
Fix "unicode_escape" encoder
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 6174998..4c509b4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -5938,7 +5938,7 @@ p = PyBytes_AS_STRING(repr); for (i = 0; i < len; i++) { - Py_UNICODE ch = PyUnicode_READ(kind, data, i); + Py_UCS4 ch = PyUnicode_READ(kind, data, i); /* Escape backslashes */ if (ch == '\\') {