changeset 88950:ad258ee59fbb

* coding.c (make_conversion_work_buffer): Adjusted for the change of Fset_buffer_multibyte. (encode_coding_raw_text): Increment p0 in the loop.
author Kenichi Handa <handa@m17n.org>
date Wed, 31 Jul 2002 07:09:00 +0000
parents 57ca0c34b3be
children 451e5c5b3856
files src/coding.c
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Wed Jul 31 07:08:15 2002 +0000
+++ b/src/coding.c	Wed Jul 31 07:09:00 2002 +0000
@@ -1594,9 +1594,8 @@
 
     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 @@
 
 		CHAR_STRING_ADVANCE (c, p1);
 		while (p0 < p1)
-		  EMIT_ONE_BYTE (*p0);
+		  {
+		    EMIT_ONE_BYTE (*p0);
+		    p0++;
+		  }
 	      }
 	  }
       else
@@ -5789,7 +5791,7 @@
   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;
 }