Commit f3b46b4a authored by Victor Stinner's avatar Victor Stinner

unicode_char() uses get_latin1_char() to get latin1 singleton characters

parent 985a82a6
......@@ -1772,6 +1772,9 @@ unicode_char(Py_UCS4 ch)
assert(ch <= MAX_UNICODE);
if (ch < 256)
return get_latin1_char(ch);
unicode = PyUnicode_New(1, ch);
if (unicode == NULL)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment