On Tue, Feb 2, 2021 at 3:47 AM Inada Naoki <[email protected]> wrote:

> But when wchar_t* is UTF-16, ucs2_utf8_encoder() can not handle
> surrogate escape.
> We need to use a temporary Unicode object. That is what "inefficient"
> means.
>

Since real UCS-2 is effectively dead, maybe it should be flipped around:
Make UTF-16 be the efficient path and UCS-2 be the path that needs to
round-trip through Unicode. But I suppose that's out of scope for this PEP.

-Em
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/KWEJN7FKF4GUEW34KZZWXOD4W5HCLVIH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to