Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3261 by 2.0 beta 3 regression: "ordinal not in range(128)" when loading review with unicode characters

A review that loads on 1.7.9 in production generates a UnicodeDecodeError on 2.0 beta 3 (a copy of the production data was upgraded). It looks very similar to the issue that was reported and fixed in .

What version are you running?
2.0 beta 3

What's the URL of the page containing the problem?

What steps will reproduce the problem?
1. Visit the URL specified. It's not necessary to click View Diff etc.

What is the expected output? What do you see instead?
The review page should load. Instead, an http 500 error is displayed.

What operating system are you using? What browser?
Review Board is installed on Ubuntu Server 13.10, and the client is Firefox 27 on Windows 8.1.

Please provide any additional information below.


'ascii' codec can't decode byte 0xef in position 176: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.2-py2.7.egg/django/core/handlers/", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/accounts/", line 21, in _check
    return login_required(view_func)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.2-py2.7.egg/django/contrib/auth/", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/site/", line 35, in _check
    return view_func(request, local_site=local_site, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/reviews/", line 649, in review_detail
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/reviews/", line 159, in get_change_entry_sections_html
    'rendered_html': mark_safe(self.render_change_entry_html(info)),
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/reviews/", line 395, in render_change_entry_html
    counts = diffset.get_total_line_counts()
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/diffviewer/", line 390, in get_total_line_counts
    for key, value in six.iteritems(filediff.get_line_counts()):
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/diffviewer/", line 210, in get_line_counts
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/diffviewer/", line 349, in _recalculate_line_counts
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/diffviewer/", line 58, in recalculate_line_counts
    files = tool.get_parser(self.binary).parse()
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0beta3-py2.7.egg/reviewboard/scmtools/", line 60, in get_parser
    if data.lstrip().startswith('diff --git'):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 176: ordinal not in range(128)

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to