From: Ken Hornstein Date: Thu, 2 Jan 2014 20:00:46 +0000 (-0500) Subject: Switch from the M-X format for characters with the high bit set to X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b83f328aa3deb6a1ee889e54dcec6981d2ac3498?ds=sidebyside Switch from the M-X format for characters with the high bit set to \xXX instead when printing format strings and other characters. --- 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);