changeset 100761:e55e55a286f4

(copy_text): To convert a non-ASCII char to unibyte, just get the low 8-bit of the code.
author Kenichi Handa <handa@m17n.org>
date Tue, 30 Dec 2008 01:48:18 +0000
parents c8c3813f6b68
children 21f4186449a7
files src/insdel.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Tue Dec 30 00:46:13 2008 +0000
+++ b/src/insdel.c	Tue Dec 30 01:48:18 2008 +0000
@@ -655,8 +655,8 @@
 	{
 	  int thislen, c;
 	  c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
-	  if (!ASCII_CHAR_P (c))
-	    c = multibyte_char_to_unibyte (c, tbl);
+	  if (! ASCII_CHAR_P (c))
+	    c &= 0xFF;
 	  *to_addr++ = c;
 	  from_addr += thislen;
 	  bytes_left -= thislen;