New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utf_8_sig streamreader bug, patch, and test #45785
Comments
The streamreader in utf_8_sig.py fails when asked to read a specified I will attached a atandalone unittest (which does work from autotest, but I will attach a patch (applied to the trunk 2.6 version), u8sig26.diff. Regards, |
Oops, it looks like my patch may have broken test_partial in test_codecs. I .jim |
One additional clue: test_codecs succeeds in verbose mode but fails in non- ..j |
I found the errror in my previous patch. It lacked a self.decode=.. line I attach a replacement patch diff-u.py26_utf8sig (apply to the 2.6 version This one passes test_codecs.py as well as my previously attached test The resulting utf_8_sig.py may benefit from further refctoring, but I Regards, |
Checked in your change and the test as r59049 (trunk) and r59050 (2.5). |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: