Commit 3b080018 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(copy_text): If Vnonascii_translation_table is non-nil, try

to convert a character less than 160 to multibyte.
(count_size_as_multibyte): Likewise.
parent bbf12bb3
......@@ -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
{
......
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