From 3cf4637e4e15fb79bc741be37524199ed21c64b2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 3 Oct 2011 14:42:15 +0200 Subject: [PATCH] unicode_subtype_new() copies also the ascii flag --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3