aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKenichi Handa2010-03-02 10:30:52 +0900
committerKenichi Handa2010-03-02 10:30:52 +0900
commitdcfb9bc4a1082ae52ee211dc7050545818c77b38 (patch)
tree5ce5d2d9c0033cf2d938acf935d9917764064ebc /src/buffer.c
parent4aa2c3b2704bcdff6f0f3f93eb919772e8f3eaf5 (diff)
downloademacs-dcfb9bc4a1082ae52ee211dc7050545818c77b38.tar.gz
emacs-dcfb9bc4a1082ae52ee211dc7050545818c77b38.zip
buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte form of raw-bytes.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 1880581c0a1..a0acad309af 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2497,7 +2497,9 @@ current buffer is cleared. */)
2497 2497
2498 if (ASCII_BYTE_P (*p)) 2498 if (ASCII_BYTE_P (*p))
2499 p++, pos++; 2499 p++, pos++;
2500 else if (EQ (flag, Qt) && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0) 2500 else if (EQ (flag, Qt)
2501 && ! CHAR_BYTE8_HEAD_P (*p)
2502 && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0)
2501 p += bytes, pos += bytes; 2503 p += bytes, pos += bytes;
2502 else 2504 else
2503 { 2505 {