# HG changeset patch # User Kenichi Handa # Date 1193104404 0 # Node ID 4edb36b0e1cf4a3327bdac2b0a3ce4c8f934908c # Parent 7ea611dc466306965caf5118a6f2163dabd2e415 (list-block-of-chars): Don't insert non-Unicode characters. diff -r 7ea611dc4663 -r 4edb36b0e1cf lisp/international/mule-diag.el --- a/lisp/international/mule-diag.el Sun Oct 21 16:05:41 2007 +0000 +++ b/lisp/international/mule-diag.el Tue Oct 23 01:53:24 2007 +0000 @@ -255,11 +255,13 @@ 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"))