James G. sack (jim) added the comment:

I found the errror in my previous patch. It lacked a self.decode=.. line 
in the StreamReader.decode elif branch. 

I attach a replacement patch diff-u.py26_utf8sig (apply to the 2.6 version 
of utf_8_sig.py. (If allowed, I will next remove the incorrect patch.)

This one passes test_codecs.py as well as my previously attached test 
module.

The resulting utf_8_sig.py may benefit from further refctoring, but I 
didn't want to do more than necessary to fix the immediate bug.

Regards,
..jim

Added file: http://bugs.python.org/file8764/diff-u.py26_utf8sig

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1444>
__________________________________

Attachment: diff-u.py26_utf8sig
Description: Binary data

_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to