# HG changeset patch # User Chong Yidong # Date 1222301496 0 # Node ID 2bdc0be612156db3ce7e89f3120312181207ae9c # Parent aedea0a2dba4558a2f36ebf736acdd08bd344426 Add comment to last fix. diff -r aedea0a2dba4 -r 2bdc0be61215 lisp/term.el --- a/lisp/term.el Thu Sep 25 00:05:52 2008 +0000 +++ b/lisp/term.el Thu Sep 25 00:11:36 2008 +0000 @@ -2781,6 +2781,9 @@ 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)