]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.c (make_conversion_work_buffer): Adjusted for the change
authorKenichi Handa <handa@m17n.org>
Wed, 31 Jul 2002 07:09:00 +0000 (07:09 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 31 Jul 2002 07:09:00 +0000 (07:09 +0000)
of Fset_buffer_multibyte.
(encode_coding_raw_text): Increment p0 in the loop.

src/coding.c

index 56b66de9d9e3da04f77a35c9cc1ee6be4f94da44..c53760a07c0a1a7445d64756228d27c5eb5f44e7 100644 (file)
@@ -1594,9 +1594,8 @@ emacs_mule_char (coding, src, nbytes, nchars)
 
     case 1:
       code = c;
-      charset = CHARSET_FROM_ID (ASCII_BYTE_P (code) ? charset_ascii
-                                : code < 0xA0 ? charset_8_bit_control
-                                : charset_8_bit_graphic);
+      charset = CHARSET_FROM_ID (ASCII_BYTE_P (code)
+                                ? charset_ascii : charset_eight_bit);
       break;
 
     default:
@@ -4279,7 +4278,10 @@ encode_coding_raw_text (coding)
 
                CHAR_STRING_ADVANCE (c, p1);
                while (p0 < p1)
-                 EMIT_ONE_BYTE (*p0);
+                 {
+                   EMIT_ONE_BYTE (*p0);
+                   p0++;
+                 }
              }
          }
       else
@@ -5789,7 +5791,7 @@ make_conversion_work_buffer (multibytep)
   set_buffer_internal (XBUFFER (buf));
   current_buffer->undo_list = Qt;
   Ferase_buffer ();
-  Fset_buffer_multibyte (multibytep ? Qt : Qnil);
+  Fset_buffer_multibyte (multibytep ? Qt : Qnil, Qnil);
   set_buffer_internal (current);
   return buf;
 }