Commit 31285a8f authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(Fset_buffer_multibyte): Fix 8-bit char handling.

parent 66b820ba
......@@ -2089,7 +2089,7 @@ but the contents viewed as characters do change. */)
p++, pos++;
else if (CHAR_BYTE8_HEAD_P (*p))
{
c = STRING_CHAR (p, stop - pos);
c = STRING_CHAR_AND_LENGTH (p, stop - pos, bytes);
/* Delete all bytes for this 8-bit character but the
last one, and change the last one to the charcter
code. */
......@@ -2176,6 +2176,7 @@ but the contents viewed as characters do change. */)
zv += bytes;
if (pos <= pt)
pt += bytes;
pend = Z_ADDR;
stop = Z;
}
}
......
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