Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2090: ordinal not in range(128) #126

@videlec

Description

@videlec

quasar patchbot is running on python3 and experienced some encoding issues, e.g. on this report

========== doctest_continuation ==========
git checkout patchbot/ticket_merged
Already on 'patchbot/ticket_merged'
Traceback (most recent call last):
  File "/usr/labri/vdelecro/.local/lib/python3.5/site-packages/sage_patchbot/patchbot.py", line 1108, in test_a_ticket
    baseline=baseline, **kwds)
  File "/usr/labri/vdelecro/.local/lib/python3.5/site-packages/sage_patchbot/plugins.py", line 426, in doctest_continuation
    msg="Old-style doctest continuation", **kwds)
  File "/usr/labri/vdelecro/.local/lib/python3.5/site-packages/sage_patchbot/plugins.py", line 256, in exclude_new
    bad_lines += exclude_new_in_diff(gitdiff, r)
  File "/usr/labri/vdelecro/.local/lib/python3.5/site-packages/sage_patchbot/plugins.py", line 284, in exclude_new_in_diff
    for line in gitdiff:
  File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2090: ordinal not in range(128)
doctest_continuation -- 0 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions