changeset 23028:2e93e3302328

(copy_text): Fix previous change, call multibyte_char_to_unibyte.
author Kenichi Handa <handa@m17n.org>
date Sat, 15 Aug 1998 01:28:14 +0000
parents 0dc823b2335f
children 0105e2a62bcf
files src/insdel.c
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Sat Aug 15 01:28:14 1998 +0000
+++ b/src/insdel.c	Sat Aug 15 01:28:14 1998 +0000
@@ -717,18 +717,7 @@
 	  int thislen, c, c_save;
 	  c = c_save = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
 	  if (!SINGLE_BYTE_CHAR_P (c))
-	    {
-	      if (!NILP (tbl))
-		{
-		  temp = Faref (tbl, make_number (c));
-		  if (INTEGERP (temp))
-		    c = XINT (temp);
-		}
-	      else if (nonascii_insert_offset > 0)
-		c -= nonascii_insert_offset;
-	      if (c < 128 || c >= 256)
-		c = (c_save & 0177) + 0200;
-	    }
+	    c = multibyte_char_to_unibyte (c, tbl);
 	  *to_addr++ = c;
 	  from_addr += thislen;
 	  bytes_left -= thislen;