aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorKenichi Handa2002-05-14 11:51:08 +0000
committerKenichi Handa2002-05-14 11:51:08 +0000
commit8c2fc3113421adfb4db33064fc54569ffedfa6b5 (patch)
treebed1fc66092a7723d5926c38a878d9f3b97bceb5 /src/buffer.c
parentc0cc7f7f490eb48a74caf75444dc8532e36ab2ca (diff)
downloademacs-8c2fc3113421adfb4db33064fc54569ffedfa6b5.tar.gz
emacs-8c2fc3113421adfb4db33064fc54569ffedfa6b5.zip
(Fset_buffer_multibyte): Convert 8-bit bytes to
multibyte form correctly.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index fd53972d6b1..b9c5c2acc52 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2161,8 +2161,9 @@ but the contents viewed as characters do change. */)
2161 else 2161 else
2162 { 2162 {
2163 unsigned char tmp[MAX_MULTIBYTE_LENGTH]; 2163 unsigned char tmp[MAX_MULTIBYTE_LENGTH];
2164 int c = BYTE8_TO_CHAR (*p);
2164 2165
2165 bytes = CHAR_STRING (*p, tmp); 2166 bytes = CHAR_STRING (c, tmp);
2166 *p = tmp[0]; 2167 *p = tmp[0];
2167 TEMP_SET_PT_BOTH (pos + 1, pos + 1); 2168 TEMP_SET_PT_BOTH (pos + 1, pos + 1);
2168 bytes--; 2169 bytes--;