From: Kenichi Handa <handa@m17n.org>
Subject: Re: [schwab@suse.de: Text mode Emacs in multibyte terminal]
Date: Wed, 07 Dec 2005 16:34:21 +0900 [thread overview]
Message-ID: <E1Ejtoj-0002JI-00@etlken> (raw)
In-Reply-To: <E1EiFWc-0003RO-QJ@fencepost.gnu.org> (message from Richard Stallman on Fri, 02 Dec 2005 13:20:50 -0500)
In article <E1EiFWc-0003RO-QJ@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:
> I am not sure whether this is a bug. Would you please DTRT and ack?
> ------- Start of forwarded message -------
> From: Andreas Schwab <schwab@suse.de>
> To: emacs-devel@gnu.org
> Subject: Text mode Emacs in multibyte terminal
[...]
> When running a text mode Emacs in a multibyte environment (eg. utf8 xterm
> with LANG=de_DE.UTF-8), and visiting a binary file (like /bin/true) you
> get a garbled screen. The problem is that all non-control characters are
> written verbatim to the terminal as if it were single-byte encoded. Even
> setting the buffer to multibyte and the terminal coding system to utf-8
> doesn't help. The only way to get a correct display is to load the file
> with a forced coding system of utf-8 or some single-byte coding system.
Thank you for the bug report. This is because
standard-display-table is setup for Latin-1 environment even
if your locale de_DE.UTF-8. I've just installed the
attached fix.
---
Kenichi Handa
handa@m17n.org
2005-12-07 Kenichi Handa <handa@m17n.org>
* international/mule-cmds.el
(set-display-table-and-terminal-coding-system): If the coding
system specified in `unibyte-display' property is different from
the arg coding-system, don't setup standard-display-table.
Index: mule-cmds.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule-cmds.el,v
retrieving revision 1.288
retrieving revision 1.289
diff -c -r1.288 -r1.289
*** mule-cmds.el 5 Dec 2005 07:38:44 -0000 1.288
--- mule-cmds.el 7 Dec 2005 07:27:28 -0000 1.289
***************
*** 1798,1804 ****
(defun set-display-table-and-terminal-coding-system (language-name &optional coding-system)
"Set up the display table and terminal coding system for LANGUAGE-NAME."
(let ((coding (get-language-info language-name 'unibyte-display)))
! (if coding
(standard-display-european-internal)
;; The following 2 lines undo the 8-bit display that we set up
;; in standard-display-european-internal, which see. This is in
--- 1798,1806 ----
(defun set-display-table-and-terminal-coding-system (language-name &optional coding-system)
"Set up the display table and terminal coding system for LANGUAGE-NAME."
(let ((coding (get-language-info language-name 'unibyte-display)))
! (if (and coding
! (or (not coding-system)
! (coding-system-equal coding coding-system)))
(standard-display-european-internal)
;; The following 2 lines undo the 8-bit display that we set up
;; in standard-display-european-internal, which see. This is in
parent reply other threads:[~2005-12-07 7:34 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <E1EiFWc-0003RO-QJ@fencepost.gnu.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1Ejtoj-0002JI-00@etlken \
--to=handa@m17n.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.