From: 胡玮文 Date: Tue, 27 Oct 2020 11:16:19 +0000 (+0800) Subject: Fix Signed-off-by check with non-ASCII names X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1691%2Fhead;p=ceph-build.git Fix Signed-off-by check with non-ASCII names Blocking https://github.com/ceph/ceph/pull/37810 https://github.com/ceph/ceph/pull/37849 --- diff --git a/ceph-pr-commits/build/test_commits.py b/ceph-pr-commits/build/test_commits.py index be581098..72d968b8 100644 --- a/ceph-pr-commits/build/test_commits.py +++ b/ceph-pr-commits/build/test_commits.py @@ -26,7 +26,7 @@ class TestCommits(object): @classmethod def command(cls, command): print("Running command:", command) - return check_output(shlex.split(command), cwd=cls.ceph_checkout).decode(errors='ignore') + return check_output(shlex.split(command), cwd=cls.ceph_checkout).decode(encoding='utf-8', errors='ignore') @classmethod def setup_class(cls):