Commit 84387cd2 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix bug #15337 with non-ASCII characters in file names used by ansi

 lisp/term.el (term-emulate-terminal): Decode the command string
 before passing it to term-command-hook.
parent 3509fb40
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.
......
......@@ -2937,8 +2937,10 @@ See `term-prompt-regexp'."
(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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment