Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH] [gdb] Ignore codespell warnings about wrong encodings
Date: Wed, 17 Jun 2026 21:35:57 +0200	[thread overview]
Message-ID: <20260617193557.14072-1-tdevries@suse.de> (raw)

With "pre-commit run codespell --all-files -v" we get warnings:
...
$ pre-commit run codespell --all-files -v
codespell................................................................Passed
- hook id: codespell
- duration: 1.52s

WARNING: Cannot decode file using encoding "utf-8": \
  gdb/testsuite/gdb.ada/non-ascii-latin-1/pack.adb
WARNING: Trying next encoding "iso-8859-1"
...

Disable these by setting quiet-level in gdb/pyproject.toml.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34291
---
 gdb/pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index d6b3892ae4f..ba1ec0ddb5f 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -149,3 +149,7 @@ uri-ignore-words-list = '*'
 
 # How to ignore blocks of code.
 ignore-multiline-regex = 'codespell:ignore-begin.*?codespell:ignore-end'
+
+# Add 1 (disable warnings about wrong encoding) in addition to the default
+# 2+32 to skip warnings about iso-8859-1 encoded files.
+quiet-level = 35 # 1+2+32

base-commit: e81676431815423ea1a4e7f3c9c85a53f8587e78
-- 
2.51.0


             reply	other threads:[~2026-06-17 19:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-17 19:35 Tom de Vries [this message]
2026-06-18 15:45 ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260617193557.14072-1-tdevries@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox