Ezio Melotti added the comment:

> I doubt about '\ud83d\udc9d' on wide build. Is it right to encode it as 
> b'💝' and not as b'��'?

I don't think so.  IIRC surrogates are invalid in UTF-32, and certainly 
shouldn't be recombined.

> This will be compatible with narrow build but will break compatibility
> with 3.3+. What is less evil?

I think it's better to be compatible with 3.3+.  This is anyway a rather 
obscure corner case.

Do you want to propose a new patch?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15866>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to