lisp/term.el (term-emulate-terminal): Decode the command string
before passing it to term-command-hook.
+2013-09-13 Eli Zaretskii <eliz@gnu.org>
+
+ * term.el (term-emulate-terminal): Decode the command string
+ before passing it to term-command-hook. (Bug#15337)
+
2013-09-13 Glenn Morris <rgm@gnu.org>
* eshell/esh-util.el (ange-cache): Move declaration earlier.
(let ((end (string-match "\r?$" str i)))
(if end
(funcall term-command-hook
- (prog1 (substring str (1+ i) end)
- (setq i (match-end 0))))
+ (decode-coding-string
+ (prog1 (substring str (1+ i) end)
+ (setq i (match-end 0)))
+ locale-coding-system))
(setq term-terminal-parameter (substring str i))
(setq term-terminal-state 4)
(setq i str-length))))