Ticket #5981 (closed defect: fixed)
TracException should have `__unicode__()` method for non ASCII message
| Reported by: | Shun-ichi Goto <shunichi.goto@…> | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.1 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | i18n unicode |
| Cc: |
Description
While playing with i18n branch, there's a problem to raise exception with translated message. TracException class should have __unicode__() method to use non-ASCII exception message. Otherwise, we will get UnicodeEncodeError. (Ex., see changeset.py line 878)
-
trac/core.py
diff -r c0a1d13079de trac/core.py
a b 37 37 if title: 38 38 self.title = title 39 39 self.show_traceback = show_traceback 40 41 def __unicode__(self): 42 return unicode(self.message) 40 43 41 44 42 45 class Interface(object):
This issue is realized on i18n branch code, but 0.11-dev trunk code has also.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


