From: Victor Stinner Date: Tue, 4 Oct 2011 22:42:43 +0000 (+0200) Subject: unicodeobject.c doesn't make output strings ready in debug mode X-Git-Tag: v3.3.0a1~1312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce5faf673e9b11f2e56baa41ee0664c632ce1d55;p=thirdparty%2FPython%2Fcpython.git unicodeobject.c doesn't make output strings ready in debug mode Try to only create non ready strings in debug mode to ensure that all functions (not only in unicodeobject.c, everywhere) make input strings ready. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4e05490431fa..56bd7b77a88b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -46,6 +46,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #endif +#ifdef Py_DEBUG +# define DONT_MAKE_RESULT_READY +#endif + /* Limit for the Unicode object free list */ #define PyUnicode_MAXFREELIST 1024