# HG changeset patch # User Kenichi Handa # Date 904535417 0 # Node ID 8d75946934cfeccafaf0aca36940f919e0e21170 # Parent a9cbf64603ca156b36fd207365733f76a3382131 (copy_text): If Vnonascii_translation_table is non-nil, try to convert a character less than 160 to multibyte. (count_size_as_multibyte): Likewise. diff -r a9cbf64603ca -r 8d75946934cf src/insdel.c --- a/src/insdel.c Mon Aug 31 03:50:17 1998 +0000 +++ b/src/insdel.c Mon Aug 31 03:50:17 1998 +0000 @@ -736,7 +736,7 @@ unsigned char workbuf[4], *str; int len; - if (c >= 0240 && c < 0400) + if ((c >= 0240 || !NILP (Vnonascii_translation_table)) && c < 0400) { c = unibyte_char_to_multibyte (c); len = CHAR_STRING (c, workbuf, str); @@ -768,7 +768,7 @@ { unsigned int c = *ptr++; - if (c < 0240) + if (c < 0240 && NILP (Vnonascii_translation_table)) outgoing_nbytes++; else {