From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Text mode Emacs in multibyte terminal Date: Wed, 16 Nov 2005 22:14:09 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1132175746 1807 80.91.229.2 (16 Nov 2005 21:15:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Nov 2005 21:15:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 16 22:15:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EcUbp-0000pl-Qb for ged-emacs-devel@m.gmane.org; Wed, 16 Nov 2005 22:14:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EcUbp-00088f-3q for ged-emacs-devel@m.gmane.org; Wed, 16 Nov 2005 16:14:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EcUbe-00088Q-9K for emacs-devel@gnu.org; Wed, 16 Nov 2005 16:14:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EcUbc-00084r-IE for emacs-devel@gnu.org; Wed, 16 Nov 2005 16:14:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EcUbc-00084m-FI for emacs-devel@gnu.org; Wed, 16 Nov 2005 16:14:12 -0500 Original-Received: from [195.135.220.2] (helo=mx1.suse.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EcUbc-0005wZ-5w for emacs-devel@gnu.org; Wed, 16 Nov 2005 16:14:12 -0500 Original-Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id AD39FEFDC for ; Wed, 16 Nov 2005 22:14:10 +0100 (CET) Original-To: emacs-devel@gnu.org X-Yow: TATTOOED MIDGETS are using ALFREDO in their SALAMI FACTORY! User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46109 Archived-At: When running a text mode Emacs in a multibyte environment (eg. utf8 xterm with LANG=3Dde_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. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."