
Feb. 1, 2021
3:39 p.m.
On Tue, Feb 2, 2021 at 4:28 AM Steve Dower <steve.dower@python.org> wrote:
I'm not defending the choice of wchar_t over UTF-8 (but I can: most of these systems chose Unicode before UTF-8 was invented and never took the backwards-incompatible change because they were so popular), but if we want to pragmatically weigh the needs of our users above our desire for purity, then we should try and support both equally wherever possible.
Note that we don't have "utf8 (char*) to Python bytes object" direct encoder API. If PEP 624 is accepted, utf8 and wchar_t* become equal. So please don't think PEP 624 neglect only wchar_t*. Regards, -- Inada Naoki <songofacandy@gmail.com>