From b83f328aa3deb6a1ee889e54dcec6981d2ac3498 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 2 Jan 2014 15:00:46 -0500 Subject: [PATCH] Switch from the M-X format for characters with the high bit set to \xXX instead when printing format strings and other characters. --- uip/fmttest.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.56.0