From: Tom de Vries <tdevries@suse.de>
To: Eli Zaretskii <eliz@gnu.org>, Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 3/5] Fix weird quoting in stap-probe.c
Date: Mon, 24 Aug 2026 20:09:58 +0200 [thread overview]
Message-ID: <816ab45b-4814-4f01-a2f9-dde7066a32ff@suse.de> (raw)
In-Reply-To: <86mrudwj97.fsf@gnu.org>
On 8/23/26 6:31 AM, Eli Zaretskii wrote:
>> From: Tom Tromey <tom@tromey.com>
>> Date: Sat, 22 Aug 2026 14:30:05 -0600
>> Cc: Tom Tromey <tom@tromey.com>
>>
>> I found some code in stap-probe.c that split the quoting in a strange
>> way:
>>
>> warning (_("unrecognized bitness %s%c' for probe `%s'"),
>> got_minus ? "`-" : "`", *cur,
>>
>> Here the leading ` is not part of the format string. I found this odd
>> and so I split this fix out into its own patch.
>
> This changes the quoting style of "-7" and the like. As the test
> suite shows, it was previously quoted as `-7'. Is there a good reason
> for this change?
I googled this a bit, and came across (
https://www.gnu.org/prep/standards/html_node/Quote-Characters.html#Quote-Characters
):
...
Although GNU programs traditionally used 0x60 (‘`’) for opening and 0x27
(‘'’) for closing quotes, nowadays quotes ‘`like this'’ are typically
rendered asymmetrically, so quoting ‘"like this"’ or ‘'like this'’
typically looks better.
...
> I'm not sure I understand what is weird about this
> quoting or ` not being part of the format string. Is this just a
> style-preference thing?
If we'd leave the quoting style unchanged, I would have preferred:
...
warning (_("unrecognized bitness `%s%c' for probe `%s'"),
got_minus ? "-" : "", *cur,
...
which I find easier to read.
Thanks,
- Tom
next prev parent reply other threads:[~2026-08-24 18:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-22 20:30 [PATCH 0/5] Remove `...' and related forms of quoting from gdb Tom Tromey
2026-08-22 20:30 ` [PATCH 1/5] Change `...'-style quoting in gdbsupport Tom Tromey
2026-08-22 20:30 ` [PATCH 2/5] Change `...'-style quoting in gdbserver Tom Tromey
2026-08-22 20:30 ` [PATCH 3/5] Fix weird quoting in stap-probe.c Tom Tromey
2026-08-23 4:31 ` Eli Zaretskii
2026-08-24 18:09 ` Tom de Vries [this message]
2026-08-22 20:30 ` [PATCH 4/5] Change `...'-style quoting in gdb Tom Tromey
2026-08-22 20:30 ` [PATCH 5/5] Fix styling in a few messages 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=816ab45b-4814-4f01-a2f9-dde7066a32ff@suse.de \
--to=tdevries@suse.de \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/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