diff options
author | Eli Zaretskii <eliz@gnu.org> | 1998-12-21 16:13:57 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 1998-12-21 16:13:57 +0000 |
commit | 8cbf107d588825272f7b706158fce3927169307d (patch) | |
tree | b29f11c70c6ed953e62eb65cf621ffd97af7a398 /src/insdel.c | |
parent | 543b4f618f1a5b4f4c01ab0e25ba812b65fc18a9 (diff) | |
download | emacs-8cbf107d588825272f7b706158fce3927169307d.tar.gz |
(copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |