Commit 8cbf107d authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via

nonascii-translation-table.
parent 543b4f61
...@@ -737,7 +737,9 @@ copy_text (from_addr, to_addr, nbytes, ...@@ -737,7 +737,9 @@ copy_text (from_addr, to_addr, nbytes,
unsigned char workbuf[4], *str; unsigned char workbuf[4], *str;
int len; 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); c = unibyte_char_to_multibyte (c);
len = CHAR_STRING (c, workbuf, str); len = CHAR_STRING (c, workbuf, str);
...@@ -769,7 +771,7 @@ count_size_as_multibyte (ptr, nbytes) ...@@ -769,7 +771,7 @@ count_size_as_multibyte (ptr, nbytes)
{ {
unsigned int c = *ptr++; unsigned int c = *ptr++;
if (c < 0240 && NILP (Vnonascii_translation_table)) if (c < 0200 || (c < 0240 && NILP (Vnonascii_translation_table)))
outgoing_nbytes++; outgoing_nbytes++;
else else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment