From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: UTF-8 and M-x shell? Date: Sun, 08 Feb 2004 14:33:55 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ekt5vgos.fsf@emptyhost.emptydomain.de> References: <20040208102520.213b4a20.occitan@esperanto.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076248108 21350 80.91.224.253 (8 Feb 2004 13:48:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2004 13:48:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 14:48:22 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AppIL-0006l6-00 for ; Sun, 08 Feb 2004 14:48:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AppFt-0003WC-KX for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2004 08:45:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!213-203-244-156.kunde.vdserver.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de (213.203.244.156) Original-X-Trace: news.uni-berlin.de 1076247221 37097034 D 213.203.244.156 ([73968] 10430) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:5jJU4EtYwj1NxDYB8HKU1w7hXR4= Original-Xref: shelby.stanford.edu gnu.emacs.help:120764 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16712 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16712 Daniel Pfeiffer writes: > I'm migrating my Gnu/Linux to LANG=de_DE.UTF-8 and finding that I need to > recode my old Latin-9 filenames. > > But now Gnu Emacs (2-3 weeks old CVS) M-x shell gets problems. > First off, the buffer still comes up in Latin-1. That can > apparently be fixed with (set-language-environment "utf-8"), but > only interactively, not in .emacs.el! Strange. What happens if you put (set-language-environment "utf-8") into ~/.emacs? Is there an error message? > But it doesn't help: > > - M-! umlaut-emitting-command displays old (1-byte) umlauts as octal > and utf-8 correctly That's how it is supposed to be. > - but with the same commands in the shell buffer, with mode-line u:, it still > displays everything as one-byte. What does M-x describe-coding-system RET RET say when in the shell buffer? The codings for process i/o should be utf-8. As a workaround, you could try M-: (set-process-coding-system nil 'utf-8 'utf-8) RET from the *shell* buffer. > What must I do for M-x shell to respect $LANG, like an xterm? > > (Btw. before I had LANG=de_DE@euro, which is Latin-9, but Emacs wrongly > defaulted to Latin-1 -- which luckily is quite similar.) That's also strange -- my Emacs defaulted to Latin-9 when I did this. Maybe it was a font problem? I had set "Emacs.font: yadda-yadda-iso8859-15" originally, but had to revert to "Emacs.font: yadda-yadda-iso8859-1" to get the right behavior. Kai