Issue #77 duplicate

hg review --web : UnicodeDecodeError

Mathieu Clabaut
created an issue

Here is the traceback :

{{{

!python

$ hg --debug review --web

starting web server * Running on http://127.0.0.1:8080/ * Restarting with reloader... starting web server 127.0.0.1 - - [05/Sep/2011 14:19:11] "GET / HTTP/1.1" 500 - Traceback (most recent call last): File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/app.py", line 965, in call return self.wsgi_app(environ, start_response) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/app.py", line 955, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/app.py", line 952, in wsgi_app rv = self.dispatch_request() File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/app.py", line 754, in dispatch_request return self.view_functionsrule.endpoint File "/home/clabaut/contrib/hg/hg-review/review/web.py", line 110, in index_newest return index(-1) File "/home/clabaut/contrib/hg/hg-review/review/web.py", line 129, in index return _render('index.html', rcsets=rcsets, newer=newer, older=older) File "/home/clabaut/contrib/hg/hg-review/review/web.py", line 89, in _render title=app.title, project_url=app.project_url, **kwargs) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/templating.py", line 85, in render_template context, ctx.app) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/templating.py", line 69, in _render rv = template.render(context) File "/home/clabaut/contrib/hg/hg-review/bundled/jinja2/jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/home/clabaut/contrib/hg/hg-review/review/templates/index.html", line 1, in top-level template code {% extends "base.html" %} File "/home/clabaut/contrib/hg/hg-review/review/templates/base.html", line 59, in top-level template code {% block content %}{% endblock %} File "/home/clabaut/contrib/hg/hg-review/review/templates/index.html", line 17, in block "content" <a class="changeset-link" href="{{ link }}">{{ rev.description().splitlines()[0] }}</a> File "/home/clabaut/contrib/hg/hg-review/bundled/jinja2/jinja2/utils.py", line 791, in escape return Markup(unicode(s) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) }}}

Where s is :

s 'mise \xc3\xa0 jour structure base de donn\xc3\xa9e'

It seems to be one of the last commit messages, with french accentuated letters in it.

Comments (2)

  1. Log in to comment