changeset 20835:f9fafa0336af

(copy_text): When copying from multibyte to unibyte, do not alter ASCII characters.
author Kenichi Handa <handa@m17n.org>
date Wed, 04 Feb 1998 11:23:28 +0000
parents 95a80c1e06c3
children 18b33fb503f3
files src/insdel.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Wed Feb 04 11:23:28 1998 +0000
+++ b/src/insdel.c	Wed Feb 04 11:23:28 1998 +0000
@@ -574,7 +574,7 @@
 	{
 	  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++;