Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7658

apply-reviews.py fails with Unicode characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 1.7.0
    • None

    Description

      This prevents commits from being applied if the name or message contains non-ASCII characters, and so can break the Windows ReviewBot.

      > git checkout b2801f0012535e29609f603b4324a9ca693f70cb~
      > python .\support\apply-reviews.py -r 59874
      Traceback (most recent call last):
        File ".\support\apply-reviews.py", line 381, in <module>
          reviewboard()
        File ".\support\apply-reviews.py", line 360, in reviewboard
          apply_review()
        File ".\support\apply-reviews.py", line 126, in apply_review
          commit_patch()
        File ".\support\apply-reviews.py", line 225, in commit_patch
          shell(cmd, options['dry_run'])
        File ".\support\apply-reviews.py", line 111, in shell
          error_code = subprocess.call(command, stderr=subprocess.STDOUT, shell=True)
        File "C:\Python27\lib\subprocess.py", line 168, in call
          return Popen(*popenargs, **kwargs).wait()
        File "C:\Python27\lib\subprocess.py", line 390, in __init__
          errread, errwrite)
        File "C:\Python27\lib\subprocess.py", line 610, in _execute_child
          args = '{} /c "{}"'.format (comspec, args)
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 25: ordinal not in range(128)
      ~\src\mesos-copy2 |-/
      

      Attachments

        Issue Links

          Activity

            People

              ArmandGrillet Armand Grillet
              andschwa Andrew Schwartzmeyer
              Joseph Wu Joseph Wu
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: