mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-08 15:35:02 +00:00
(copy_text): When copying from multibyte to unibyte, do
not alter ASCII characters.
This commit is contained in:
parent
84246b955e
commit
cb97b980dd
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user