From: Kenichi Handa Date: Tue, 23 Oct 2007 01:53:24 +0000 (+0000) Subject: (list-block-of-chars): Don't insert non-Unicode characters. X-Git-Tag: emacs-pretest-23.0.90~8295^2~296 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea60d50f68741d310db206fccda43e7cf3a99a4c;p=emacs.git (list-block-of-chars): Don't insert non-Unicode characters. --- diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index b3f3b7eb006..f9bb0439897 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el @@ -255,11 +255,13 @@ detailed meanings of these arguments." 32 (or (decode-char charset (+ (* row 256) i)) 32))) ; gap in mapping - ;; Don't insert a control code. + ;; Don't insert control codes, non-Unicode characters. (if (or (< ch 32) (= ch 127)) (setq ch (single-key-description ch)) (if (and (>= ch 128) (< ch 160)) - (setq ch (format "%02Xh" ch)))) + (setq ch (format "%02Xh" ch)) + (if (> ch #x10FFFF) + (setq ch 32)))) (insert "\t" ch) (setq i (1+ i)))) (insert "\n"))