I can reproduce the original error (well, the one in comment:8 actually) and now with r7822, this gives a slightly different backtrace:
Traceback (most recent call last):
File "C:\Workspace\src\trac\repos\0.11-stable\trac\web\api.py", line 367, in send_error
'text/html')
File "C:\Workspace\src\trac\repos\0.11-stable\trac\web\chrome.py", line 742, in render_template
stream.render(method, doctype=doctype, out=buffer)
File "build\bdist.win32\egg\genshi\core.py", line 179, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "build\bdist.win32\egg\genshi\output.py", line 57, in encode
for chunk in iterator:
File "build\bdist.win32\egg\genshi\output.py", line 307, in __call__
for kind, data, pos in stream:
File "build\bdist.win32\egg\genshi\output.py", line 749, in __call__
for kind, data, pos in stream:
File "build\bdist.win32\egg\genshi\output.py", line 588, in __call__
for kind, data, pos in stream:
File "build\bdist.win32\egg\genshi\output.py", line 703, in __call__
text = mjoin(textbuf, escape_quotes=False)
File "build\bdist.win32\egg\genshi\core.py", line 465, in join
for item in seq]))
File "build\bdist.win32\egg\genshi\core.py", line 494, in escape
text = unicode(text).replace('&', '&') \
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 63: ordinal not in range(128)
This is shown as "raw" content, as the error actually happens during send_error
.
There's also no hint about where that error comes from (in my test, I just put a non-ascii character in the repository_dir
).