aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f0a620b7b99..cb9b2d85d11 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-03-02 Kenichi Handa <handa@m17n.org>
2
3 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4 form of raw-bytes.
5
12010-02-28 Chong Yidong <cyd@stupidchicken.com> 62010-02-28 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * charset.c (load_charset_map_from_file) 8 * charset.c (load_charset_map_from_file)
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 {