Commit ae7367d3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(print_object): Output multibyte chars 128...255

using \x even if ! print_escape_multibyte.
parent ae02e06a
......@@ -1429,11 +1429,15 @@ print_object (obj, printcharfun, escapeflag)
PRINTCHAR ('\\');
PRINTCHAR ('f');
}
else if (multibyte && ! ASCII_BYTE_P (c)
&& print_escape_multibyte)
else if (multibyte
&& ! ASCII_BYTE_P (c)
&& (SINGLE_BYTE_CHAR_P (c) || print_escape_multibyte))
{
/* When multibyte is disabled,
print multibyte string chars using hex escapes. */
print multibyte string chars using hex escapes.
For a char code that could be in a unibyte string,
when found in a multibyte string, always use a hex escape
so it reads back as multibyte. */
unsigned char outbuf[50];
sprintf (outbuf, "\\x%x", c);
strout (outbuf, -1, -1, printcharfun, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment