mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 14a12635bdfdf2ecd3c4609eb3527593e12de4a0
parent 0370a28d493d29baa75412141a50a86f70ecba08
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Mon, 13 Mar 2017 15:49:30 +0100

mscan: don't print C0 control symbols

Diffstat:
mscan.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/mscan.c b/mscan.c @@ -45,6 +45,10 @@ u8putstr(FILE *out, char *s, ssize_t l, int pad) putc(*s, out); s++; l--; + } else if ((unsigned)*s < 32 || *s == 127) { // C0 + fprintf(out, "%lc", *s == 127 ? 0x2421 : 0x2400+*s); + s++; + l--; } else { wchar_t wc; int r = mbtowc(&wc, s, 4);