]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/info.el (Info-mode): Support the Linux console better.
authorEli Zaretskii <eliz@gnu.org>
Sun, 28 Aug 2022 11:42:07 +0000 (14:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 28 Aug 2022 11:42:07 +0000 (14:42 +0300)
lisp/info.el

index 739116cceacd734bf98c616d00c2e97c59bcebd8..5655e3f3ce9d10704a91b649ee2844e3cfc2601d 100644 (file)
@@ -4446,9 +4446,12 @@ Advanced commands:
   (setq buffer-read-only t)
   (setq Info-tag-table-marker (make-marker))
   (unless (or (display-multi-font-p)
-              (coding-system-equal
-               (coding-system-base (terminal-coding-system))
-               'utf-8))
+              (and (coding-system-equal
+                    (coding-system-base (terminal-coding-system))
+                    'utf-8)
+                   ;; The Linux console has limited character
+                   ;; repertoire even when its encoding is UTF-8.
+                   (not (equal (tty-type) "linux"))))
     (dolist (elt info-symbols-and-replacements)
       (let ((ch (car elt))
             (repl (cdr elt)))