aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-08-31 03:50:17 +0000
committerKenichi Handa1998-08-31 03:50:17 +0000
commit3b0800187df767d0518e05c534fd690e75a00311 (patch)
treeac1105ef03fa88fda966da195521456e57451d6b /src
parentbbf12bb32b0f4d0a6e6fc2d4228173b4a1b51a8b (diff)
downloademacs-3b0800187df767d0518e05c534fd690e75a00311.tar.gz
emacs-3b0800187df767d0518e05c534fd690e75a00311.zip
(copy_text): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyte. (count_size_as_multibyte): Likewise.
Diffstat (limited to 'src')
-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,
736 unsigned char workbuf[4], *str; 736 unsigned char workbuf[4], *str;
737 int len; 737 int len;
738 738
739 if (c >= 0240 && c < 0400) 739 if ((c >= 0240 || !NILP (Vnonascii_translation_table)) && c < 0400)
740 { 740 {
741 c = unibyte_char_to_multibyte (c); 741 c = unibyte_char_to_multibyte (c);
742 len = CHAR_STRING (c, workbuf, str); 742 len = CHAR_STRING (c, workbuf, str);
@@ -768,7 +768,7 @@ count_size_as_multibyte (ptr, nbytes)
768 { 768 {
769 unsigned int c = *ptr++; 769 unsigned int c = *ptr++;
770 770
771 if (c < 0240) 771 if (c < 0240 && NILP (Vnonascii_translation_table))
772 outgoing_nbytes++; 772 outgoing_nbytes++;
773 else 773 else
774 { 774 {