Subject: Re: bug#44155: Print integers as characters

From: Mattias Engdegård <[email-masked]>
Date: Tue, 3 Nov 2020 19:47:17 +0100

3 nov. 2020 kl. 16.24 skrev Eli Zaretskii <[email-masked]>:

> What is meant by "printable characters" here?  One could think you
> mean [:print:], but that doesn't seem to be what then code does.

Non-control characters (characters other than control characters), in this case. I wanted to keep things simple and not involve the Unicode database in the printer.

(For that matter, [:print:] is a regexp feature and doesn't really define the meaning of 'printable', but your question was valid.)

On the other hand, printing all non-controls using the ?X syntax is maybe not ideal. Attached is a new patch that uses Unicode properties to select only printable base characters.

This patch also removes \a, \v, \e and \d from the characters printed as escaped controls.