Issue #77 duplicate

hg review --web : UnicodeDecodeError

Mathieu Clabaut
created an issue

Here is the traceback :



$ hg --debug review --web

starting web server * Running on * Restarting with reloader... starting web server - - [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/", line 965, in call return self.wsgi_app(environ, start_response) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/", line 955, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/", line 952, in wsgi_app rv = self.dispatch_request() File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/", line 754, in dispatch_request return self.view_functionsrule.endpoint File "/home/clabaut/contrib/hg/hg-review/review/", line 110, in index_newest return index(-1) File "/home/clabaut/contrib/hg/hg-review/review/", line 129, in index return _render('index.html', rcsets=rcsets, newer=newer, older=older) File "/home/clabaut/contrib/hg/hg-review/review/", line 89, in _render title=app.title, project_url=app.project_url, **kwargs) File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/", line 85, in render_template context, File "/home/clabaut/contrib/hg/hg-review/bundled/flask/flask/", line 69, in _render rv = template.render(context) File "/home/clabaut/contrib/hg/hg-review/bundled/jinja2/jinja2/", 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/", 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