New submission from James G. sack (jim):

The streamreader in utf_8_sig.py fails when asked to read a specified 
bytelength of data that ends up in the middle of a multibyte utf8 code.

I will attached a atandalone unittest (which does work from autotest, but 
doesn't use test_support), test_utf8sig_stream.py.

I will attach a patch (applied to the trunk 2.6 version), u8sig26.diff.

Regards,
..jim

----------
components: Unicode
files: u8sig26.diff
messages: 57520
nosy: jgsack
severity: normal
status: open
title: utf_8_sig streamreader bug, patch, and test
type: crash
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file8749/u8sig26.diff

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

Attachment: u8sig26.diff
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