From 64a0823127d130166cf41df4d601cd37161a5768 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 25 Sep 2008 00:11:36 +0000 Subject: [PATCH] Add comment to last fix. --- lisp/term.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/term.el b/lisp/term.el index a74e271f13a..3ab8069b408 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -2781,6 +2781,9 @@ See `term-prompt-regexp'." str i)) (when (not funny) (setq funny str-length)) (cond ((> funny i) + ;; Decode the string before counting + ;; characters, to avoid garbling of certain + ;; multibyte characters (bug#1006). (setq decoded-substring (decode-coding-string (substring str i funny) -- 2.39.5