[EXTERNAL] Re: [PATCH 1/1] Stop tar printing unsafe archive lists to stdout
Ian Norton
Ian.Norton at entrust.com
Mon Jul 8 19:57:56 UTC 2024
On Monday 8 July 2024 Steffen Nurpmeso <steffen at sdaoden.eu> wrote:
> Seeing diff hunk context i myself would then do (maybe, likely)
char c;
while((c = *msg++) != '\0')
fputc((isprint_asciionly(c) ? c : '?'), fd);
|+ } else {
|+ fprintf(fd, "%s", msg);
|+ }
|+}
> But then I did a grep and found unicode_conv_to_printable().
> How about simply using this??
Hi Steffen, that could be useful! It will for sure strip away the ANSI codes but
I think it will leave the traditional cr/lf/backspace/ff chars alone. I will try
It out and report back
Ian
Any email and files/attachments transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. If this message has been sent to you in error, you must not copy, distribute or disclose of the information it contains. Please notify Entrust immediately and delete the message from your system.
More information about the busybox
mailing list