]> git.eshelyaron.com Git - emacs.git/commit
Fix 'replace-buffer-contents' in multibyte buffers
authorEli Zaretskii <eliz@gnu.org>
Fri, 15 Jun 2018 08:27:56 +0000 (11:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 15 Jun 2018 08:27:56 +0000 (11:27 +0300)
commit0d3c35807d0b0a3aaa4c4ebd2f040bb78013879d
tree3d1e838f66004370736692bef8c3c8eb8f03d1db
parentc79a6275b2f3bc529f9e7e9a65dc56fbd30364d9
Fix 'replace-buffer-contents' in multibyte buffers

* src/editfns.c (buffer_chars_equal): Pass a byte position to
BUF_FETCH_CHAR_AS_MULTIBYTE, not a character position.
(Bug#31837)

* test/src/editfns-tests.el (replace-buffer-contents-bug31837):
New test.
src/editfns.c
test/src/editfns-tests.el