Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#3065 closed defect (fixed)

unicode error in docutils

Reported by: Christian Boos Owned by: Jonas Borgström
Priority: normal Milestone: 0.10
Component: general Version: devel
Severity: minor Keywords: unicode docutils rst
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

While reading through the p.e.c Trac log, found this one:

2006-04-19 03:23:38,464 Trac[browser] DEBUG: Rendering preview of node README@3209 with mime-type text/x-rst
2006-04-19 03:23:38,468 Trac[api] DEBUG: Trying to render HTML preview using ReStructuredTextRenderer
2006-04-19 03:23:38,689 Trac[api] WARNING: HTML preview using <trac.mimeview.rst.ReStructuredTextRenderer object at 0x41dd79\
cc> failed (coercing to Unicode: need string or buffer, instance found)
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 287, in render
    filename, url)
  File "/usr/lib/python2.3/site-packages/trac/mimeview/rst.py", line 228, in render
    settings_overrides={'halt_level': 6})
  File "/usr/lib/python2.3/site-packages/docutils/core.py", line 371, in publish_string
    enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.3/site-packages/docutils/core.py", line 513, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.3/site-packages/docutils/core.py", line 194, in publish
    self.settings)
  File "/usr/lib/python2.3/site-packages/docutils/readers/__init__.py", line 65, in read
    self.input = self.source.read()
  File "/usr/lib/python2.3/site-packages/docutils/io.py", line 280, in read
    return self.decode(self.source)
  File "/usr/lib/python2.3/site-packages/docutils/io.py", line 84, in decode
    return unicode(data, enc)
TypeError: coercing to Unicode: need string or buffer, instance found

Attachments (0)

Change History (1)

comment:1 by Jonas Borgström, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in r3421.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.