Menu

Commit [r11683]  Maximize  Restore  History

1.0.2dev: Genshi 0.7 fix for wiki bracketed link .

Any page containing a `<http://...>` link produced a
global TracError:
{{{
Genshi UnicodeEncodeError error while rendering template (unknown template location)
}}}

The code was doing something like `'...%s...' % Element()` and the
Genshi builder `Element` contained a non-ascii character (ZWSP). In
Genshi 0.7, conversion to a `str` is now producing `unicode`, as the
default encoding parameter for `Stream.render()` is now `None`
(i.e. `unicode`).

Added a test case to catch this.

cboos 2013-02-11

changed /branches/1.0-stable/trac/wiki/formatter.py
changed /branches/1.0-stable/trac/wiki/tests/wiki-tests.txt
/branches/1.0-stable/trac/wiki/formatter.py Diff Switch to side-by-side view
Loading...
/branches/1.0-stable/trac/wiki/tests/wiki-tests.txt Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB