X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1c08be1b270cce9c287aa3c83454969cdec5b7de..4eaa35207bacee170f0bcf99837ce7fc8b6f0a70:/uip/fmttest.c diff --git a/uip/fmttest.c b/uip/fmttest.c index f08583e0..b39d0d52 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -1168,11 +1168,8 @@ static void litputc(char c) { if (c & ~ 0177) { - putc('M', stdout); - putc('-', stdout); - c &= 0177; - } - if (c < 0x20 || c == 0177) { + printf("\\x%02x", (unsigned char) c); + } else if (c < 0x20 || c == 0177) { if (c == '\b') { putc('\\', stdout); putc('b', stdout);