aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-09-13 15:36:32 +0200
committerJoakim Verona2013-09-13 15:36:32 +0200
commit9de87b9a2f98b8f7b24b3a7b7cb1dfda7c562bf1 (patch)
tree7d3953df15918aee4b1e7db3a9a379426770e431
parente4ccda9e0071fab547036a2c1c6e7ff7a5db3286 (diff)
parent84387cd2595e0e99bb6976fe1e160156b5291611 (diff)
downloademacs-9de87b9a2f98b8f7b24b3a7b7cb1dfda7c562bf1.tar.gz
emacs-9de87b9a2f98b8f7b24b3a7b7cb1dfda7c562bf1.zip
merge from trunk
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 014b48771c1..93156233ee1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-09-13 Eli Zaretskii <eliz@gnu.org>
2
3 * term.el (term-emulate-terminal): Decode the command string
4 before passing it to term-command-hook. (Bug#15337)
5
12013-09-13 Glenn Morris <rgm@gnu.org> 62013-09-13 Glenn Morris <rgm@gnu.org>
2 7
3 * eshell/esh-util.el (ange-cache): Move declaration earlier. 8 * eshell/esh-util.el (ange-cache): Move declaration earlier.
diff --git a/lisp/term.el b/lisp/term.el
index 31889a78273..be080297b2e 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -2937,8 +2937,10 @@ See `term-prompt-regexp'."
2937 (let ((end (string-match "\r?$" str i))) 2937 (let ((end (string-match "\r?$" str i)))
2938 (if end 2938 (if end
2939 (funcall term-command-hook 2939 (funcall term-command-hook
2940 (prog1 (substring str (1+ i) end) 2940 (decode-coding-string
2941 (setq i (match-end 0)))) 2941 (prog1 (substring str (1+ i) end)
2942 (setq i (match-end 0)))
2943 locale-coding-system))
2942 (setq term-terminal-parameter (substring str i)) 2944 (setq term-terminal-parameter (substring str i))
2943 (setq term-terminal-state 4) 2945 (setq term-terminal-state 4)
2944 (setq i str-length)))) 2946 (setq i str-length))))