Mercurial > emacs
changeset 88872:6d6ec38a31ac
(print_object): Use octal form for printing the
contents of a bool vector.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 22 Jul 2002 06:27:09 +0000 |
parents | ce44b8f7d67b |
children | 7d441bc35e9b |
files | src/print.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/print.c Thu Jul 18 16:30:48 2002 +0000 +++ b/src/print.c Mon Jul 22 06:27:09 2002 +0000 @@ -1698,7 +1698,12 @@ { 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');