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

New issue 1542 by richardt: unhandled exception, line 659

*NOTE: Do not post confidential information in this bug report.*

What version are you running?
March 5th nightly of RBTools.

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

What steps will reproduce the problem?
It seems to be related to the handling of non-ascii characters in a
supposedly ASCII text file.  We have a file, 'tinystr.cpp' from the TinyXML
distribution. seems to choke when encoding the line
"THIS FILE WAS ALTERED BY Tyge Løvset, 7. April 2005."
Specifically on the 'o' in Lovset.  This is obviously not an ascii
character.  I'm currently removing this code from my source control, which
is why I'm seeing this error now.

What is the expected output? What do you see instead?
It would be nice if:
1) The file post-reviewed anyway.
And at the very least I would expect
2) The rest of the files post-review, and I get a warning about this one,
and what exactly is wrong with it, along with (hopefully) a notice on the
review board server's website that the file changed and could not be

The text of the stack is (note that this is running in pdb):
Traceback (most recent call last):
", line 1283, in main
", line 1202, in _runscript
", line 368, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "", line 2809, in <module>
  File "", line 2791, in main
  File "", line 2497, in tempt_fate
  File "", line 506, in upload_diff
    review_request['id'], fields, files)
  File "", line 625, in api_post
    return self.process_json(self.http_post(path, fields, files))
  File "", line 600, in http_post
    content_type, body = self._encode_multipart_formdata(fields, files)
  File "", line 659, in _encode_multipart_formdata
    return content_type, content.encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf8 in position
818872: ordinal not in range(128)

What operating system are you using? What browser?

I'm running on Windows 7.

Please provide any additional information below.

This error did not happen with an older version of RBTools (I had reviewed
adding this code to our source code control earlier, when we were thinking
about using it).  I upgraded to this one to get a couple of other fixes,
but ran into this instead.

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

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

Reply via email to