# HG changeset patch # User Kenichi Handa # Date 1230601698 0 # Node ID e55e55a286f43a018e01be184b7a71a27459b613 # Parent c8c3813f6b683173225f2cef9dec45d842a702e2 (copy_text): To convert a non-ASCII char to unibyte, just get the low 8-bit of the code. diff -r c8c3813f6b68 -r e55e55a286f4 src/insdel.c --- 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;