Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] [gdb] Ignore codespell warnings about wrong encodings
@ 2026-06-17 19:35 Tom de Vries
  2026-06-18 15:45 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2026-06-17 19:35 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [gdb] Ignore codespell warnings about wrong encodings
  2026-06-17 19:35 [PATCH] [gdb] Ignore codespell warnings about wrong encodings Tom de Vries
@ 2026-06-18 15:45 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2026-06-18 15:45 UTC (permalink / raw)
  To: Tom de Vries; +Cc: gdb-patches

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

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

Tom> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34291

Seems fine to me.
Approved-By: Tom Tromey <tom@tromey.com>


Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-18 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 19:35 [PATCH] [gdb] Ignore codespell warnings about wrong encodings Tom de Vries
2026-06-18 15:45 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox