From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 4D7CB3858D33 for ; Thu, 16 Feb 2023 12:26:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D7CB3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.97,302,1669104000"; d="scan'208";a="101132796" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 16 Feb 2023 04:26:15 -0800 IronPort-SDR: Jbwd0GxVWE/Igp7/FwsBe2wlHHwRFI+EYexv/Ud04p4Ex0ukFxzMGtSGQCThjCp/Cy+l63smS4 E1BxwSXPnWf72yXeQjWjxJRYkLxQjvs1sAhsygzAWPij+DNvU9f80P8/uA3MB48fhqpVVAitrn UWkb5WuVkFZwGmXPcgtXPq1hhxhZnyCR8wTFGb3TaNl7kFHYEjc9I98knifpNjfOolbtkZWIo6 PSgJK/3m2ro+JZiQ1m5gTxFMHdW4U/FkNAFkSqezgaSA5tNnoDh/EjKEfG/yRzuKD4y9qaNufw GQ4= From: Thomas Schwinge To: CC: Martin =?utf-8?Q?Li=C5=A1ka?= Subject: Git 'hooks/post_receive.py': UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 2766: invalid start byte User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) Date: Thu, 16 Feb 2023 13:26:09 +0100 Message-ID: <878rgx94pq.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi! The following is not an actual problem for me or GCC/Rust; just for your information: I've just pushed to GCC devel/rust/master branch Git commits cc23831ec66..74913f718b0, which 'hooks/post_receive.py' threw up upon: $ git push upstream github/Rust-GCC/gccrs/master:devel/rust/master Enumerating objects: 326, done. Counting objects: 100% (326/326), done. Delta compression using up to 12 threads Compressing objects: 100% (143/143), done. Writing objects: 100% (224/224), 32.72 KiB | 6.54 MiB/s, done. Total 224 (delta 191), reused 106 (delta 79) remote: Resolving deltas: 100% (191/191), completed with 86 local objec= ts. remote: Traceback (most recent call last): remote: File "hooks/post_receive.py", line 118, in remote: post_receive(refs_data, args.submitter_email) remote: File "hooks/post_receive.py", line 65, in post_receive remote: submitter_email) remote: File "hooks/post_receive.py", line 47, in post_receive_one remote: update.send_email_notifications() remote: File "/sourceware1/projects/src-home/git-hooks/hooks/updates/= __init__.py", line 189, in send_email_notifications remote: self.__email_new_commits() remote: File "/sourceware1/projects/src-home/git-hooks/hooks/updates/= __init__.py", line 1031, in __email_new_commits remote: commit, self.get_standard_commit_email(commit)) remote: File "/sourceware1/projects/src-home/git-hooks/hooks/updates/= __init__.py", line 1011, in __send_commit_email remote: default_diff=3Demail.diff) remote: File "/sourceware1/projects/src-home/git-hooks/hooks/updates/= __init__.py", line 946, in __maybe_get_email_custom_contents remote: hook_input=3Djson.dumps(hooks_data), remote: File "/usr/lib64/python2.7/json/__init__.py", line 244, in du= mps remote: return _default_encoder.encode(obj) remote: File "/usr/lib64/python2.7/json/encoder.py", line 207, in enc= ode remote: chunks =3D self.iterencode(o, _one_shot=3DTrue) remote: File "/usr/lib64/python2.7/json/encoder.py", line 270, in ite= rencode remote: return _iterencode(o, 0) remote: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in posi= tion 2766: invalid start byte To git+ssh://gcc.gnu.org/git/gcc.git cc23831ec66..74913f718b0 github/Rust-GCC/gccrs/master -> devel/rust= /master I very much suppose this "byte 0xff" is commit 92d6dc8443acbd273333cab411bfd68eaca56a89 "Implemented UTF-8 checking for include_str!()" adding 'gcc/testsuite/rust/compile/invalid_utf8': $ od -x gcc/testsuite/rust/compile/invalid_utf8 0000000 0aff 0000002 Due to that (I suppose), Git commit emails to have not been sent. Gr=C3=BC=C3=9Fe Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955