unicode_char() uses get_latin1_char() to get latin1 singleton characters
This commit is contained in:
parent
985a82a6d2
commit
f3b46b4a66
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue