﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
10295,"Trac detected an internal error:  UnicodeError: source returned bytes, but no encoding specified",netjunki,seccanj,"After install test manager in Trac 1.0beta1 I get the following error when trying to load the Test Manager page:
{{{
 Trac detected an internal error:

UnicodeError: source returned bytes, but no encoding specified
}}}

I'm guessing this is related to [http://trac.edgewall.org/wiki/TracDev/ApiChanges/1.0#Genshimandatory this note] about changes in the 1.0 API to genshi. But I'm not sure how to go about fixing it myself.

Here's the stack trace:
{{{
File ""build/bdist.macosx-10.7-intel/egg/trac/web/main.py"", line 490, in _dispatch_request
  dispatcher.dispatch(req)
File ""build/bdist.macosx-10.7-intel/egg/trac/web/main.py"", line 224, in dispatch
  content_type)
File ""build/bdist.macosx-10.7-intel/egg/trac/web/chrome.py"", line 968, in render_template
  stream |= self._filter_stream(req, method, filename, stream, data)
File ""/Users/ben/tmp/trac/trac/genshi-trunk/genshi/core.py"", line 133, in __or__
  return Stream(_ensure(function(self)), serializer=self.serializer)
File ""build/bdist.macosx-10.7-intel/egg/trac/web/chrome.py"", line 1147, in inner
  data)
File ""build/bdist.macosx-10.7-intel/egg/testmanager/wiki.py"", line 153, in filter_stream
  return self._catalog_wiki_view(req, formatter, page_name, stream)
File ""build/bdist.macosx-10.7-intel/egg/testmanager/wiki.py"", line 238, in _catalog_wiki_view
  HTML(self._build_catalog_tree(formatter.context, page_name, mode, fulldetails, table_columns, table_columns_map, custom_ctx)),
File ""/Users/ben/tmp/trac/trac/genshi-trunk/genshi/input.py"", line 436, in HTML
  return Stream(list(HTMLParser(BytesIO(text), encoding=encoding)))
File ""/Users/ben/tmp/trac/trac/genshi-trunk/genshi/core.py"", line 273, in _ensure
  event = stream.next()
File ""/Users/ben/tmp/trac/trac/genshi-trunk/genshi/input.py"", line 443, in _coalesce
  for kind, data, pos in chain(stream, [(None, None, None)]):
File ""/Users/ben/tmp/trac/trac/genshi-trunk/genshi/input.py"", line 335, in _generate
  raise UnicodeError(""source returned bytes, but no encoding specified"")
}}}",defect,closed,normal,TestManagerForTracPlugin,normal,fixed,,,1.0
