id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
8610,[patch] 'UnicodeEncodeError' for non-english enviroments,Steffen Hoffmann,Álvaro Iradier,"I've tested this plugin tonight and it seems to work quit well.
But there is at least one issue with Trac>=0.12 for non-English Trac environments, whenever non-ASCII chars are encountered in exceptions. The fix is trivial in this case:
{{{
#!diff
searchall_build/tracsearchall/searchall.py 2011-03-16 00:22:23.000000000 +0100
@@ -17,6 +17,7 @@
from trac.env import open_environment
from trac.util import Markup
from trac.util.datefmt import to_datetime
+from trac.util.text import to_unicode
import re
import posixpath
@@ -160,7 +161,7 @@
except Exception, ex:
results += [(req.href('search', **req.args),
""ERROR in search filter %s"" % filter,
- to_datetime(None), ""none"", ""Exception: %s"" % str(ex)),]
+ to_datetime(None), ""none"", ""Exception: %s"" % to_unicode(ex)),]
req.href = orig_href
}",defect,closed,normal,SearchAllPlugin,normal,fixed,unicode,Ryan J Ollos,0.12