[New-bugs-announce] [issue1444] utf_8_sig streamreader bug, patch, and test

James G. sack (jim) report at bugs.python.org
Thu Nov 15 09:06:32 CET 2007


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 <report at bugs.python.org>
<http://bugs.python.org/issue1444>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u8sig26.diff
Type: application/octet-stream
Size: 977 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071115/3c13f3d1/attachment.obj 


More information about the New-bugs-announce mailing list