Modify ↓
Opened 17 years ago
Closed 17 years ago
#6944 closed defect (fixed)
unicode decode error on `WebAdmin - Plugins` page
Reported by: | Owned by: | osimons | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | admin/web | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | trac-ja@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
looks like #6890.
WebAdmin - plugins
page fails, if plugines's docstring has
non-ASCII chars.
Patch:
-
trac/admin/web_ui.py
30 30 from trac.perm import PermissionSystem, IPermissionRequestor 31 31 from trac.util import get_pkginfo, get_module_path 32 32 from trac.util.compat import partial 33 from trac.util.text import to_unicode 33 34 from trac.util.translation import _ 34 35 from trac.web import HTTPNotFound, IRequestHandler 35 36 from trac.web.chrome import add_script, add_stylesheet, add_warning, Chrome, \ … … 480 481 if os.path.realpath(os.path.dirname(dist.location)) == plugins_dir: 481 482 plugin_filename = os.path.basename(dist.location) 482 483 483 description = inspect.getdoc(component)484 description = to_unicode(inspect.getdoc(component)) 484 485 if description: 485 486 description = description.split('.', 1)[0] + '.' 486 487
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
Owner: | changed from | to
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the patch - tested and committed in [6667].
Note:
See TracTickets
for help on using tickets.
Ideally plugins should provide unicode strings if they have non-ascii characters in any strings.
However, better safe than sorry, I suppose - certainly for such a minor fix.
I'll get onto it.