From: Chong Yidong Date: Thu, 25 Sep 2008 00:11:36 +0000 (+0000) Subject: Add comment to last fix. X-Git-Tag: emacs-pretest-23.0.90~2775 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64a0823127d130166cf41df4d601cd37161a5768;p=emacs.git Add comment to last fix. --- 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)