]> git.eshelyaron.com Git - emacs.git/commitdiff
(copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via
authorEli Zaretskii <eliz@gnu.org>
Mon, 21 Dec 1998 16:13:57 +0000 (16:13 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 21 Dec 1998 16:13:57 +0000 (16:13 +0000)
nonascii-translation-table.

src/insdel.c

index 31fbae441dfa4614d1c3f778d1306517ba3c4889..3c056ffe41ffd4ef420677125f600d07bc74a0fc 100644 (file)
@@ -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
        {