GNU bug report logs - #52459
28.0.90; prin1-to-string does not escape bidi control characters despite print-escape-control-characters=t

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Sun, 12 Dec 2021 20:14:01 UTC

Severity: normal

Found in version 28.0.90

Full log


Message #83 received at 52459 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 52459 <at> debbugs.gnu.org,
 Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#52459: 28.0.90; prin1-to-string does not escape bidi
 control characters despite print-escape-control-characters=t
Date: Tue, 14 Dec 2021 20:22:10 +0100
On Dez 14 2021, Daniel Mendler wrote:

> No, `print-escape-multibyte` also applies to `format  and `message`. Try
> the following:
>
> (let ((print-escape-multibyte t))
>   (format "%S" bidi-directional-controls-chars)
>   (message "%S" bidi-directional-controls-chars))

%S is, in essence, prin1-to-string.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 3 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.