Message ID | 20250819193918.874215-3-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632412; bh=XCQrrgRCgp9hzo2AKavNj0LQrGNFeW0pz9f2ULbujqE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=AY7sFfU3PFJX2SqvTJ/a7DLbPKYm2Gm8tBPGC06IKrKDeNLneyjp5ZjhnSoI97Ajg RWdzLUcmOm7XIl72+JOHTvqsMvrPmhBexUdyFeobpaL1YCqBXGYEG2vCqxF64tuVS3 5gcCGub4VgjHhRqpBQqa+TFk3BFkQ8awxGWGwhazvvghN/k9azuyJ1Q7Kie+rNi5Og o1Lm3WEzYZv9YzQtjcOH5rPTT+wF3UYXrhogCpiFDGxWGCKBdvMlIeDGKpTtbN95mK fqjiQtKmLpbvB/rzQc80/H+y6/Ht47gPm19BicywirX9M4bWIfWTGFT123azG2Pc/C W+EJPl5mSgi0w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EC8A36760F for <u-boot-concept@u-boot.org>; Tue, 19 Aug 2025 13:40:12 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id fUlIqhm4-8BN for <u-boot-concept@u-boot.org>; Tue, 19 Aug 2025 13:40:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632412; bh=XCQrrgRCgp9hzo2AKavNj0LQrGNFeW0pz9f2ULbujqE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=AY7sFfU3PFJX2SqvTJ/a7DLbPKYm2Gm8tBPGC06IKrKDeNLneyjp5ZjhnSoI97Ajg RWdzLUcmOm7XIl72+JOHTvqsMvrPmhBexUdyFeobpaL1YCqBXGYEG2vCqxF64tuVS3 5gcCGub4VgjHhRqpBQqa+TFk3BFkQ8awxGWGwhazvvghN/k9azuyJ1Q7Kie+rNi5Og o1Lm3WEzYZv9YzQtjcOH5rPTT+wF3UYXrhogCpiFDGxWGCKBdvMlIeDGKpTtbN95mK fqjiQtKmLpbvB/rzQc80/H+y6/Ht47gPm19BicywirX9M4bWIfWTGFT123azG2Pc/C W+EJPl5mSgi0w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DBB57675F8 for <u-boot-concept@u-boot.org>; Tue, 19 Aug 2025 13:40:12 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632410; bh=f13w/63TXmjaCqxUbqMD1vUSR06liBNdldBlRszu8Hc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qjjM/GiIBaC8cFrmhiQ3YX4U7s9pwFhmVQ1FpUfSJAmgLyAw6MytaH+RI/Tad8Mos HWn+zYSar5latrMhUIPGkay7i6gSrHUzz/0Y5B2EWkGm7d8zKFZN4XXYmI8TIoKDqf bmZMCkinxcWhRH4EJP23SlCMqKLQHEsOJ9vC76dS9c8jKXg9+x5Puph2w/7ZsbsU1S 3W9lXjptu1rf25ZL8P8+L/PEutwP3206G0Nplw6hfZPERYMLgRPeHxm6Tz3A9OXjR6 6pFkhZez5OeNbMLtwqbV1ZlakdJ+9EztVYqsC/Sr0djWwEY8tezFOvp1fuVGYW79M6 up9ZddGZfZ4Ew== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DC4F6675F4; Tue, 19 Aug 2025 13:40:10 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id hQBdNqA2sR40; Tue, 19 Aug 2025 13:40:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632406; bh=KN1YHulragDaEX5JCOCUu88LP6uM5KYvj7BUdjCl8iM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BAVa41K9vpNUST/+zvaEOze6SWv2oHIkTVCWi2Z6mVD+NTNuB4qTjDAv8cMyh++MV wy0YGPxEeUW+oCgjh1Og1L+Hi01Gu6hrlq9vhvx5jWgTiO2syTEGhu0PXMGiM+CYjs goWB9+UF1LKWBFwJXA6es0fLc97qeOrCrl3sDMpER4OZtLOaDGzGTjTjz6eIwCP2fg vH7D85wHHRanTejkL7/8RVOWvTryz8NX76UkaSiLYnLPK6d0M7WHJXfZO83m4O66CM iQLshRDu4ixLbP57zfIQCY7XNKRtog7+//jMJQSA07RN/ORPQmmjs4QHSEa0zcKR3a 1lqQQrS8Vl7XA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6D3575E436; Tue, 19 Aug 2025 13:40:06 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 19 Aug 2025 13:38:58 -0600 Message-ID: <20250819193918.874215-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819193918.874215-1-sjg@u-boot.org> References: <20250819193918.874215-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: UNHPJ2FJZHOBZZPPI6WZZ6WA4KZYO6PI X-Message-ID-Hash: UNHPJ2FJZHOBZZPPI6WZZ6WA4KZYO6PI X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 02/15] patman: Handle invalid characters in patch files List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/UNHPJ2FJZHOBZZPPI6WZZ6WA4KZYO6PI/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
test: Improvements to make check et al
|
|
Commit Message
Simon Glass
Aug. 19, 2025, 7:38 p.m. UTC
From: Simon Glass <sjg@chromium.org> In some cases latin1 encoding may be used in source files. If 'high-ascii' are used, patman may report an error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 1051: invalid continuation byte Fix this by replacing these characters. This may cause the patch to fail to apply, but at least it can be checked. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/patman/patchstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 45040877f8c..120004a3e0d 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -831,7 +831,7 @@ def fix_patch(backup_dir, fname, series, cmt, keep_change_id=False, fname = os.path.join(cwd or '', fname) handle, tmpname = tempfile.mkstemp() outfd = os.fdopen(handle, 'w', encoding='utf-8') - infd = open(fname, 'r', encoding='utf-8') + infd = open(fname, 'r', encoding='utf-8', errors='replace') pst = PatchStream(series, keep_change_id=keep_change_id, insert_base_commit=insert_base_commit) pst.commit = cmt