Labels: Type-Defect Priority-Medium
New issue 3467 by sourto...@gmail.com: Server error when viewing certain
What version are you running?
What's the URL of the page containing the problem?
(Please don't visit this excessively, we get an email for each internal
error Reviewboard encounters)
What steps will reproduce the problem?
1. Post a diff which contains certain characters which the ASCII character
set cannot encode.
What is the expected output? What do you see instead?
Normal diff view page.
What operating system are you using? What browser?
Issue is a server error. Using Python 2.7.3 on Linux.
Please provide any additional information below.
Relevant part of the backtrace:
line 58, in recalculate_line_counts
files = tool.get_parser(self.binary).parse()
line 181, in parse
preamble += self.lines[i] + '\n'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24:
ordinal not in range(128)
as follows appears to fix the issue:
preamble += unicode(self.lines[i], 'utf-8') + '\n'
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
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.