On Monday 8 July 2024 Steffen Nurpmeso <stef...@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.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to