From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v3] [gdb/remote] Use sevenbit_strings == true in escape_buffer
Date: Tue, 24 Mar 2026 20:56:13 +0100 [thread overview]
Message-ID: <3c201878-6070-49a2-b237-910cd2b65f2d@suse.de> (raw)
In-Reply-To: <87se9p5b5f.fsf@tromey.com>
On 3/24/26 7:34 PM, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
>
> Tom> With Tcl 9.0, something (dejagnu/expect/gdb testsuite infrastructure)
> Tom> has problems with gdb IO containing non-utf-8 chars.
>
> Tom> Having said that, I don't think having chars like 'ü' in the debug output is
> Tom> particularly helpful.
>
> Tom> Fix this by forcing sevenbit_strings to true in escape_buffer, getting us
> Tom> instead:
> Tom> ...
>
> Looks good, thanks.
>
> Tom> Note that this output is ambiguous, because:
> Tom> - one char '\0', and
> Tom> - 4 chars '\\' '0' '0' '0'
> Tom> are printed the same: \000, but I guess that's a pre-existing problem.
>
> That's a bit surprising since I would have thought that '\' would also
> be backslash-quoted.
>
Ok, I double checked this, and you're right, we get \000 vs \\000.
I'll drop that part of the commit message.
Thanks for the review.
- Tom
> Anyway this is ok.
> Approved-By: Tom Tromey <tom@tromey.com>
>
> Tom
prev parent reply other threads:[~2026-03-24 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 15:32 Tom de Vries
2026-03-24 18:34 ` Tom Tromey
2026-03-24 19:56 ` Tom de Vries [this message]
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=3c201878-6070-49a2-b237-910cd2b65f2d@suse.de \
--to=tdevries@suse.de \
--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