Steve Dower added the comment:

The current patch actually only affects the raw IO, so the concern would be one 
of the wrappers trying to work in bytes when it should be dealing in 
characters. This should be no different from reading a UTF16 file, so either 
both work or both are broken.

The readline API is most annoying because it assumes strlen is valid for any 
encoded text (and at so many places it's near unfixable), but there's another 
issue for this part.

Also, I don't have answers for most of the questions in the review on the patch 
because I copied all of those bits from fileio.c. Can certainly clean parts of 
them up for the console API, but I count compatibility with the FileIO class a 
useful goal where possible.

----------

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

Reply via email to