Re: Issue 3781 in reviewboard: Problem generating diff files containing UNICODE characters (Fix in description)

2015-03-13 Thread reviewboard

Updates:
Status: Fixed

Comment #2 on issue 3781 by trowb...@gmail.com: Problem generating diff  
files containing UNICODE characters (Fix in description)

https://code.google.com/p/reviewboard/issues/detail?id=3781

Fixed in rbtools release-0.7.x (c2cb0ea). Thanks!

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Issue 3781 in reviewboard: Problem generating diff files containing UNICODE characters (Fix in description)

2015-02-20 Thread reviewboard

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

New issue 3781 by francois...@gmail.com: Problem generating diff files  
containing UNICODE characters (Fix in description)

https://code.google.com/p/reviewboard/issues/detail?id=3781

*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
*** rejected.
***
*** If you have a security issue to report, please send it confidentially
to
*** 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
http://reviews.reviewboard.org/
***
*** This bug tracker is public. Please check that any logs or other
information
*** 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:

Python27\Lib\site-packages\RBTools-0.7.1-py2.7.egg\rbtools\utils\process.py
Line 93

   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:
https://code.google.com/hosting/settings

--
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 reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.