On Thu, May 26, 2022 at 08:28:24PM +1000, Steven D'Aprano wrote:

> Narrow builds were UCS-2; wide builds were UTC-32.

To be more precise, narrow builds were sort of a hybrid between an 
incomplete version of UTF-16 and a superset of UCS-2.

Like UTF-16, if your code point was above U+FFFF, it would be 
represented by a pair of surrogate code points. But like UCS-2, that 
surrogate pair was seen as two characters rather than one.

(If you think this is complicated and convoluted, yes, yes it is.)


-- 
Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/FH3OQNWXY5CKA6MEEMRBZ5B4C7WY5BYK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to