Labels: Type-Defect Priority-Medium
New issue 3781 by francois...@gmail.com: Problem generating diff files
containing UNICODE characters (Fix in description)
*** READ THIS BEFORE POSTING!
*** You must complete this form in its entirety, or your bug report will be
*** If you have a security issue to report, please send it confidentially
*** secur...@reviewboard.org. Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
*** For customer support, please post to reviewbo...@googlegroups.com
*** If you have a patch, please submit it to
*** This bug tracker is public. Please check that any logs or other
*** that you include has been stripped of confidential information.
What version are you running?
RBTools 0.7.1 with Python 2.7
What's the URL of the page containing the problem?
None, problem lies in RBTools while generating a diff
What steps will reproduce the problem?
1. Have a file encoded in something else than ASCII
2. try to generate a diff using RBTools
3. It will fail with a message stating the 'ascii' converter cannot process
a character > 128
What is the expected output? What do you see instead?
Expected output, a valid diff
What operating system are you using? What browser?
Windows 7, Chrome
Please provide any additional information below.
Here's the culprit:
logging.debug('Command exited with rc %s: %s\n%s---'
% (rc, command, data))
It is logging what was read from the file "data" which can be encoded in
UNICODE. The logging fails and the whole diff file fails because of it.
Commenting out the logging statement successfully generates a diff. Logging
should probably be moved AFTER the conversion of the variable data in ASCII
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.