changeset 23929:869b3e83aa6b

(copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via nonascii-translation-table.
author Eli Zaretskii <eliz@gnu.org>
date Mon, 21 Dec 1998 16:13:57 +0000
parents b718a88bb2b1
children a9f9015b5b83
files src/insdel.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Mon Dec 21 16:12:53 1998 +0000
+++ b/src/insdel.c	Mon Dec 21 16:13:57 1998 +0000
@@ -737,7 +737,9 @@
 	  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 @@
     {
       unsigned int c = *ptr++;
 
-      if (c < 0240 && NILP (Vnonascii_translation_table))
+      if (c < 0200 || (c < 0240 && NILP (Vnonascii_translation_table)))
 	outgoing_nbytes++;
       else
 	{