From b2d2821515097896fe8e639d20e6b90c906eb0dc Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 22 Jul 2002 06:27:09 +0000 Subject: [PATCH] (print_object): Use octal form for printing the contents of a bool vector. --- src/print.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/print.c b/src/print.c index 7a900a108c1..29555a7acbe 100644 --- a/src/print.c +++ b/src/print.c @@ -1698,7 +1698,12 @@ print_object (obj, printcharfun, escapeflag) { QUIT; c = XBOOL_VECTOR (obj)->data[i]; - if (c == '\n' && print_escape_newlines) + if (! ASCII_BYTE_P (c)) + { + sprintf (buf, "\\%03o", c); + strout (buf, -1, -1, printcharfun, 0); + } + else if (c == '\n' && print_escape_newlines) { PRINTCHAR ('\\'); PRINTCHAR ('n'); -- 2.39.5