changeset 98334:2bdc0be61215

Add comment to last fix.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 25 Sep 2008 00:11:36 +0000
parents aedea0a2dba4
children c82c45a5263a
files lisp/term.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)