]> git.eshelyaron.com Git - emacs.git/commitdiff
(list-block-of-chars): Don't insert non-Unicode characters.
authorKenichi Handa <handa@m17n.org>
Tue, 23 Oct 2007 01:53:24 +0000 (01:53 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 23 Oct 2007 01:53:24 +0000 (01:53 +0000)
lisp/international/mule-diag.el

index b3f3b7eb006f506dea0ccdebeb1cc11975f43a45..f9bb043989736a68dd85b1696480c42566b55ba2 100644 (file)
@@ -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"))