summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-12-30 01:48:18 +0000
committerKenichi Handa <handa@m17n.org>2008-12-30 01:48:18 +0000
commitaa040e1b53e03b7587b1d5d8f401708af0367447 (patch)
tree66efb7b6e291dd3b89b585ff4723d82b6c9ebbbd /src
parent8b00b2bd30a6fc28765a444782646a79d5d51cc8 (diff)
downloademacs-aa040e1b53e03b7587b1d5d8f401708af0367447.tar.gz
(copy_text): To convert a non-ASCII char to unibyte,
just get the low 8-bit of the code.
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 a41f03b1ba4..3483ad668cf 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -655,8 +655,8 @@ copy_text (from_addr, to_addr, nbytes,
{
int thislen, c;
c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
- if (!ASCII_CHAR_P (c))
- c = multibyte_char_to_unibyte (c, tbl);
+ if (! ASCII_CHAR_P (c))
+ c &= 0xFF;
*to_addr++ = c;
from_addr += thislen;
bytes_left -= thislen;