From: Victor Stinner Date: Mon, 3 Oct 2011 12:42:15 +0000 (+0200) Subject: unicode_subtype_new() copies also the ascii flag X-Git-Tag: v3.3.0a1~1366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cf4637e4e15fb79bc741be37524199ed21c64b2;p=thirdparty%2FPython%2Fcpython.git unicode_subtype_new() copies also the ascii flag --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 30db41883205..c3e1f290e123 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -12846,7 +12846,7 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds) _PyUnicode_STATE(self).interned = 0; _PyUnicode_STATE(self).kind = kind; _PyUnicode_STATE(self).compact = 0; - _PyUnicode_STATE(self).ascii = 0; + _PyUnicode_STATE(self).ascii = _PyUnicode_STATE(unicode).ascii; _PyUnicode_STATE(self).ready = 1; _PyUnicode_WSTR(self) = NULL; _PyUnicode_UTF8_LENGTH(self) = 0;