(term-emulate-terminal): Decode substring just prior to
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 27 Dec 2008 17:57:25 +0000 (17:57 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 27 Dec 2008 17:57:25 +0000 (17:57 +0000)
inserting it, i.e. revert part of the 2008-09-24 change. (Bug#1469)

lisp/ChangeLog
lisp/term.el

index 5cda871..20b3e91 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-27  Nicholas Maniscalco <nicholas@maniscalco.com>  (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  <eliz@gnu.org>
 
        * makefile.w32-in (MH_E_DIR): New variable.
index c459e65..bdb2f18 100644 (file)
@@ -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))