changeset: 98538:5b9ffea7e7c3 user: Victor Stinner date: Mon Oct 05 13:49:26 2015 +0200 files: Objects/unicodeobject.c description: Issue #25301: Fix compatibility with ISO C90 diff -r 3152e4038d97 -r 5b9ffea7e7c3 Objects/unicodeobject.c --- a/Objects/unicodeobject.c Mon Oct 05 13:43:50 2015 +0200 +++ b/Objects/unicodeobject.c Mon Oct 05 13:49:26 2015 +0200 @@ -4795,9 +4795,12 @@ break; case _Py_ERROR_SURROGATEESCAPE: + { + Py_ssize_t i; + if (_PyUnicodeWriter_PrepareKind(&writer, PyUnicode_2BYTE_KIND) < 0) goto onError; - for (Py_ssize_t i=startinpos; i