Handle multibyte chars spanning chunks in term.el
commit134e86b360cab0d0a5cb634b71a4b06ec26c5f1f
authorNoam Postavsky <npostavs@gmail.com>
Thu, 29 Dec 2016 01:13:20 +0000 (28 20:13 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 3 Jan 2017 13:58:40 +0000 (3 08:58 -0500)
treec690d1ac910ab7b1e07298035cec3c232c3eea55
parent975b2acfe6a4e246631c372063d7bdef0f832d3d
Handle multibyte chars spanning chunks in term.el

* lisp/term.el (term-terminal-undecoded-bytes): New variable.
(term-mode): Make it buffer local.  Don't make `term-terminal-parameter'
buffer-local twice.
(term-emulate-terminal): Check for bytes of incompletely decoded
characters, and save them until the next call when they can be fully
decoded (Bug#25288).
lisp/term.el