]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fset_buffer_multibyte): Convert 8-bit bytes to
authorKenichi Handa <handa@m17n.org>
Tue, 14 May 2002 11:51:08 +0000 (11:51 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 14 May 2002 11:51:08 +0000 (11:51 +0000)
multibyte form correctly.

src/ChangeLog
src/buffer.c

index 6172430e19a134a1b88aae3797d2685a5f5dbdd3..9a7a6bc650b2541c5f9f18c3ea5f0b64766a8073 100644 (file)
@@ -1,11 +1,16 @@
 2002-05-14  Kenichi Handa  <handa@etl.go.jp>
 
+       * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
+       multibyte form correctly.
+
        * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
        against Vfont_encoding_alist.
 
        * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
        handling of charset list.
        (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
+       (decode_coding_object): Move point to coding->dst_pos before
+       calling post-read-conversion function.
 
        * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
 
index fd53972d6b15ebeb5171bd50248751c839caaba9..b9c5c2acc52754b4e6ae8eb06462caf1d939af6e 100644 (file)
@@ -2161,8 +2161,9 @@ but the contents viewed as characters do change.  */)
          else
            {
              unsigned char tmp[MAX_MULTIBYTE_LENGTH];
+             int c = BYTE8_TO_CHAR (*p);
 
-             bytes = CHAR_STRING (*p, tmp);
+             bytes = CHAR_STRING (c, tmp);
              *p = tmp[0];
              TEMP_SET_PT_BOTH (pos + 1, pos + 1);
              bytes--;