changeset 23155:8d75946934cf

(copy_text): If Vnonascii_translation_table is non-nil, try to convert a character less than 160 to multibyte. (count_size_as_multibyte): Likewise.
author Kenichi Handa <handa@m17n.org>
date Mon, 31 Aug 1998 03:50:17 +0000
parents a9cbf64603ca
children e080ad3cc739
files src/insdel.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Mon Aug 31 03:50:17 1998 +0000
+++ b/src/insdel.c	Mon Aug 31 03:50:17 1998 +0000
@@ -736,7 +736,7 @@
 	  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 @@
     {
       unsigned int c = *ptr++;
 
-      if (c < 0240)
+      if (c < 0240 && NILP (Vnonascii_translation_table))
 	outgoing_nbytes++;
       else
 	{