This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients alexandre.vassalotti, christian.heimes, gvanrossum
Date 2007-10-15.00:34:27
SpamBayes Score 0.2580807
Marked as misclassified No
Message-id <4712B58B.5030904@cheimes.de>
In-reply-to <ca471dc20710141727s5efa80aexe42d8168141da19d@mail.gmail.com>
Content
>>   UnicodeDecodeError: 'utf8' codec can't decode bytes in position
>>   1428-1430: invalid data
> 
> I can't reproduce this. Can you open a separate issue?

It breaks for me with the same error message on Ubuntu Linux, i386,
UCS-4 build and locale de_DE.UTF-8.

(<io.TextIOWrapper object at 0xb7c9158c>,
'/home/heimes/dev/python/py3k/Lib/heapq.py', ('.py', 'U', 1))
>>> imp.find_module('heapq')[0].read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/heimes/dev/python/py3k/Lib/io.py", line 1224, in read
    res += decoder.decode(self.buffer.read(), True)
  File "/home/heimes/dev/python/py3k/Lib/codecs.py", line 291, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position
1428-1430: invalid data
>>> imp.find_module('heapq')[0].readline()
'# -*- coding: Latin-1 -*-\n'
>>> imp.find_module('heapq')[0].encoding
'UTF-8'
History
Date User Action Args
2007-10-15 00:34:28christian.heimessetspambayes_score: 0.258081 -> 0.2580807
recipients: + christian.heimes, gvanrossum, alexandre.vassalotti
2007-10-15 00:34:28christian.heimeslinkissue1272 messages
2007-10-15 00:34:27christian.heimescreate