]> git.eshelyaron.com Git - emacs.git/commit
Fix term.el bug with very short multibyte character chunk
authorStephane Zermatten <szermatt@gmx.net>
Mon, 31 Mar 2025 13:41:08 +0000 (16:41 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 13 Apr 2025 20:54:24 +0000 (22:54 +0200)
commit73b7f59734c9d6c491c6abe5f8049b79979f81e8
tree3c016471c3762df4219d01058d5afaa0a8747d81
parent4f4847bd29560af115dbb3bb126658f5d7ace782
Fix term.el bug with very short multibyte character chunk

Before this change, a chunk containing only a part
of a multibyte character would be discarded and
displayed undecoded on the terminal.
* lisp/term.el (term-emulate-terminal): Fix handling chunks
with part of a multibyte character.  (Bug#77410)

* test/lisp/term-tests.el (term-decode-partial)
(term-undecodable-input): Fix and enhance tests.

Copyright-paperwork-exempt: yes
(cherry picked from commit 158cf528c4aa690be84f9d1c3bc96b750e8b37b3)
lisp/term.el
test/lisp/term-tests.el