From: Eli Zaretskii Date: Mon, 21 Dec 1998 16:13:57 +0000 (+0000) Subject: (copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via X-Git-Tag: emacs-20.4~1020 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8cbf107d588825272f7b706158fce3927169307d;p=emacs.git (copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via nonascii-translation-table. --- diff --git a/src/insdel.c b/src/insdel.c index 31fbae441df..3c056ffe41f 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -737,7 +737,9 @@ copy_text (from_addr, to_addr, nbytes, unsigned char workbuf[4], *str; int len; - if ((c >= 0240 || !NILP (Vnonascii_translation_table)) && c < 0400) + if (c < 0400 + && (c >= 0240 + || (c >= 0200 && !NILP (Vnonascii_translation_table)))) { c = unibyte_char_to_multibyte (c); len = CHAR_STRING (c, workbuf, str); @@ -769,7 +771,7 @@ count_size_as_multibyte (ptr, nbytes) { unsigned int c = *ptr++; - if (c < 0240 && NILP (Vnonascii_translation_table)) + if (c < 0200 || (c < 0240 && NILP (Vnonascii_translation_table))) outgoing_nbytes++; else {