Message30655
when the decode function in encodings.utf_8_sig receives a buffer object, it fails because it tries to check for a bom using startswith:
>>> unicode('\xef\xbb\xbf', 'utf_8_sig')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/encodings/utf_8_sig.py", line 19, in decode
if input.startswith(codecs.BOM_UTF8):
AttributeError: 'buffer' object has no attribute 'startswith'
the test should be changed to:
if input[:3] == codecs.BOM_UTF8:
|
|
Date |
User |
Action |
Args |
2007-08-23 14:50:13 | admin | link | issue1601501 messages |
2007-08-23 14:50:13 | admin | create | |
|