From: Kenichi Handa Date: Wed, 4 Feb 1998 11:23:28 +0000 (+0000) Subject: (copy_text): When copying from multibyte to unibyte, do X-Git-Tag: emacs-20.3~2239 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb97b980dd6e0ceaa416da59713453889d190f01;p=emacs.git (copy_text): When copying from multibyte to unibyte, do not alter ASCII characters. --- diff --git a/src/insdel.c b/src/insdel.c index aaf5de38217..805200aae56 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -574,7 +574,7 @@ copy_text (from_addr, to_addr, nbytes, { int thislen, c; c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen); - *to_addr++ = (c & 0177) + 0200; + *to_addr++ = SINGLE_BYTE_CHAR_P (c) ? c : (c & 0177) + 0200; from_addr += thislen; bytes_left--; nchars++;