From fe3a1c1dd292fa11d6cf27c7f7ee2e60fe6844f3 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Sat, 27 Dec 2008 17:57:25 +0000 Subject: [PATCH] (term-emulate-terminal): Decode substring just prior to inserting it, i.e. revert part of the 2008-09-24 change. (Bug#1469) --- lisp/ChangeLog | 5 +++++ lisp/term.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5cda871b6e6..20b3e91c0a1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-12-27 Nicholas Maniscalco (tiny change) + + * term.el (term-emulate-terminal): Decode substring just prior to + inserting it, i.e. revert part of the 2008-09-24 change. (Bug#1469) + 2008-12-27 Eli Zaretskii * makefile.w32-in (MH_E_DIR): New variable. diff --git a/lisp/term.el b/lisp/term.el index c459e65faf4..bdb2f18bf7f 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -2834,7 +2834,7 @@ See `term-prompt-regexp'." ;; following point if not eob nor insert-mode. (let ((old-column (current-column)) columns pos) - (insert decoded-substring) + (insert (decode-coding-string (substring str i funny) locale-coding-system)) (setq term-current-column (current-column) columns (- term-current-column old-column)) (when (not (or (eobp) term-insert-mode)) -- 2.39.2