summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/insdel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 2faa53ee174..fb29518fe89 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -736,7 +736,7 @@ copy_text (from_addr, to_addr, nbytes,
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 @@ count_size_as_multibyte (ptr, nbytes)
{
unsigned int c = *ptr++;
- if (c < 0240)
+ if (c < 0240 && NILP (Vnonascii_translation_table))
outgoing_nbytes++;
else
{