From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lennartsson Newsgroups: gmane.linux.debian.user,gmane.emacs.help Subject: Re: Emacs, mutt and a problem with locales Date: Tue, 26 Dec 2006 15:16:32 +0100 Message-ID: <20061226141632.GE5177@lennartsson.se> References: <20061224111826.GA4316@terra.es> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167143902 18241 80.91.229.10 (26 Dec 2006 14:38:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 14:38:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: bounce-debian-user=gldu-debian-user-2=m.gmane.org@lists.debian.org Tue Dec 26 15:38:20 2006 Return-path: Envelope-to: gldu-debian-user-2@m.gmane.org Original-Received: from murphy.debian.org ([70.103.162.31]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzDRb-00063L-CL for gldu-debian-user-2@m.gmane.org; Tue, 26 Dec 2006 15:38:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by murphy.debian.org (Postfix) with QMQP id 74ACA2DD95; Tue, 26 Dec 2006 08:38:07 -0600 (CST) Old-Return-Path: Original-Received: from findus.lennartsson.se (2-1-2-23a.orby.sth.bostream.se [82.183.139.75]) by murphy.debian.org (Postfix) with ESMTP id B2D442E175 for ; Tue, 26 Dec 2006 08:16:34 -0600 (CST) Original-Received: from abel by findus.lennartsson.se with local (Exim 4.50) id 1GzD6W-0003NW-7r; Tue, 26 Dec 2006 15:16:32 +0100 Original-To: debian-user@lists.debian.org Content-Disposition: inline In-Reply-To: <20061224111826.GA4316@terra.es> User-Agent: Mutt/1.5.9i X-Rc-Spam: 2006-12-04_03 X-Rc-Virus: 2006-10-25_01 X-Rc-Spam: 2006-12-04_03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on murphy.debian.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=no version=3.0.3 Resent-Message-ID: Resent-From: debian-user@lists.debian.org X-Mailing-List: archive/latest/462542 X-Loop: debian-user@lists.debian.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: debian-user-request@lists.debian.org Resent-Date: Tue, 26 Dec 2006 08:38:07 -0600 (CST) Xref: news.gmane.org gmane.linux.debian.user:267725 gmane.emacs.help:39925 Archived-At: I asked essentially the same question in October. There are some helpful comments from others in that thread [1] [2]. I essentially added the following lines to my .emacs based on information given by others but interpreted by me: (prefer-coding-system locale-coding-system) (when (not window-system) (set-keyboard-coding-system locale-coding-system) (set-terminal-coding-system locale-coding-system) ) The first one is for general use, but if you start emacs in a terminal window you may need the other lines. With the environment variable LANG=en_US.UTF-8 now everything works nicely with mutt and emacs, both in sarge, etch and sid. I also had to convert my alias file to utf-8, otherwise mutt wouldn't understand the character encoding when putting in the expanded addresses. Anders [1] http://lists.debian.org/debian-user/2006/10/msg03418.html [2] http://lists.debian.org/debian-user/2006/11/msg00023.html