STINNER Victor <victor.stin...@haypocalc.com> added the comment:

I patched py3k with mbcs_errors.patch (only encode_mbcs, not the decoder 
function) and most test pass: I opened #8784 for test_tarfile failure.

I don't think that it's a problem that mbcs only supports few error handlers, 
eg. 'strict', 'replace' and 'errors' (but not 'ignore' nor 'surrogateescape'). 
mbcs should be avoided anyway :-) It is kept for backward compatibility (with 
Python2). Python3 tries to avoid it by using the Unicode functions of Windows 
API.

I don't know exactly where mbcs is still used in Python3. If mbcs becomes more 
strict and raise new errors, I would like to say that the problem comes from 
the program, not in the encodig, and the program should be fixed (especilly if 
the "program" is the Python standard library).

About the backward compatibility with Python < 3.2: I don't know exactly if 
this change would be a problem or not. I bet that few people use (directly or 
indirectly) mbcs with Python 3.1 (on Windows), and few peple (or nobody) would 
notice this change. And as I wrote, if someone notices a problem: the problem 
should be fixed in the function using mbcs, not in the codec.

----------

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

Reply via email to