From 3b0800187df767d0518e05c534fd690e75a00311 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 31 Aug 1998 03:50:17 +0000 Subject: [PATCH] (copy_text): If Vnonascii_translation_table is non-nil, try to convert a character less than 160 to multibyte. (count_size_as_multibyte): Likewise. --- src/insdel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insdel.c b/src/insdel.c index 2faa53ee174..fb29518fe89 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -736,7 +736,7 @@ copy_text (from_addr, to_addr, nbytes, 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 @@ count_size_as_multibyte (ptr, nbytes) { unsigned int c = *ptr++; - if (c < 0240) + if (c < 0240 && NILP (Vnonascii_translation_table)) outgoing_nbytes++; else { -- 2.39.2