3770: rbt post with 0.7.1 release get the error: UnicodeDecodeError

shir*****@126**** (Google Code) (Is this you? Claim this profile.)
March 12, 2015
What version are you running?

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

What steps will reproduce the problem?
1.modify the local working copy;
2.run the command rbt post -o -d
3.get the following error:
E:\DEMO\trunk>rbt post -o -d
>>> RBTools 0.7.1
>>> Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]
>>> Running on Windows-XP-5.1.2600-SP3
>>> Home = C:\Documents and Settings\yihui.hu\Application Data
>>> Current directory = E:\DEMO\trunk
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
Traceback (most recent call last):
  File "C:\Python27\Scripts\rbt-script.py", line 9, in <module>
    load_entry_point('RBTools==0.7.1', 'console_scripts', 'rbt')()
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\commands\main.py", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\commands\__init__.py", line 538, in run_from_argv
    exit_code = self.main(*args) or 0
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\commands\post.py", line 589, in main
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\commands\__init__.py", line 566, in initialize_scm_tool
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\clients\__init__.py", line 385, in scan_usable_client
    repository_info = tool.get_repository_info()
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\clients\svn.py", line 58, in get_repository_info
    data = self._run_svn(svn_info_params, ignore_errors=True)
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\clients\svn.py", line 658, in _run_svn
    return execute(cmdline, *args, **kwargs)
  File "C:\Python27\lib\site-packages\rbtools-0.7.1-py2.7.egg\rbtools\utils\process.py", line 109, in execute
    data = data.decode('utf-8')
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 372: invalid continuation byte

What is the expected output? What do you see instead?
Expected result: Create a new review request in reviewboard server.

What operating system are you using? What browser?
Windows XP, IE/Chrome

Please provide any additional information below.
I have two reviewboard server, one is 1.7.20, another is 2.0.13,
but there are the same error
#1 david
  • +PendingReview
  • +Component-RBTools
  • +david
#2 david
Fixed in rbtools release-0.7.x (de0e748). This will ship in 0.7.3. Thanks!
  • -PendingReview