aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-02-04 11:23:28 +0000
committerKenichi Handa1998-02-04 11:23:28 +0000
commitcb97b980dd6e0ceaa416da59713453889d190f01 (patch)
tree263f98c97900d852918ef18efd1c89124aec8ca3 /src
parent84246b955eac2fc5a8531096b09e798bfb98e31f (diff)
downloademacs-cb97b980dd6e0ceaa416da59713453889d190f01.tar.gz
emacs-cb97b980dd6e0ceaa416da59713453889d190f01.zip
(copy_text): When copying from multibyte to unibyte, do
not alter ASCII characters.
Diffstat (limited to 'src')
-rw-r--r--src/insdel.c2
1 files changed, 1 insertions, 1 deletions
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,
574 { 574 {
575 int thislen, c; 575 int thislen, c;
576 c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen); 576 c = STRING_CHAR_AND_LENGTH (from_addr, bytes_left, thislen);
577 *to_addr++ = (c & 0177) + 0200; 577 *to_addr++ = SINGLE_BYTE_CHAR_P (c) ? c : (c & 0177) + 0200;
578 from_addr += thislen; 578 from_addr += thislen;
579 bytes_left--; 579 bytes_left--;
580 nchars++; 580 nchars++;