From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: Coding systems and Terminal.app on Mac OS X Date: Thu, 24 Mar 2005 20:17:51 -0500 Message-ID: References: <8e7ecd4be6d2db7520f896189a1b135b@Web.DE> <79e39130065cf34bca7eb33e35eff18d@Web.DE> <9b795a5704f093bfe3dbec55935dc49d@Web.DE> <355667b4edbd0f6e8c22264e0bd9f6b3@Web.DE> <76bf85cfe204136f51ff3b4119616af5@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1111714051 17336 80.91.229.2 (25 Mar 2005 01:27:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Mar 2005 01:27:31 +0000 (UTC) Cc: YAMAMOTO Mitsuharu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 25 02:27:30 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DEdb8-0005LT-1N for ged-emacs-devel@m.gmane.org; Fri, 25 Mar 2005 02:26:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DEdqW-0002z8-4L for ged-emacs-devel@m.gmane.org; Thu, 24 Mar 2005 20:42:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DEdoa-0002JV-6b for emacs-devel@gnu.org; Thu, 24 Mar 2005 20:40:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DEdoL-0002BZ-IB for emacs-devel@gnu.org; Thu, 24 Mar 2005 20:40:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DEdoL-0002A0-3w for emacs-devel@gnu.org; Thu, 24 Mar 2005 20:40:29 -0500 Original-Received: from [206.47.199.163] (helo=simmts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DEdST-0003AK-1I for emacs-devel@gnu.org; Thu, 24 Mar 2005 20:17:53 -0500 Original-Received: from empanada.home ([70.49.83.30]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050325011752.YNBE1614.simmts5-srv.bellnexxia.net@empanada.home>; Thu, 24 Mar 2005 20:17:52 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id 2618E4AAEB5; Thu, 24 Mar 2005 20:17:52 -0500 (EST) Original-To: Peter Dyballa In-Reply-To: <76bf85cfe204136f51ff3b4119616af5@Web.DE> (Peter Dyballa's message of "Fri, 25 Mar 2005 00:34:55 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:35122 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35122 > Terminal.app is a complicated application and clearly not finished (with = ls > in Terminal I can't see UTF-8 file names correctly, only > a??o??u????U??O??A?????, This seems to be a problem with `ls' rather than with Terminal.app. Maybe if you try another `ls' binary or another locale it'll work better. > doing it in Emacs' shell I see > a\314?o\314?u\314?\303?U\314?O\314?A\314?\342?\254 You mean `ls' inside M-x shell? If so, I doubt it can work better than `ls' directly in Terminal.app. OTOH M-x eshell might handle file names correctly (as long as it doesn't executed `ls'). > and in dired as the correct string =C3=A4=C3=B6=C3=BC=C3=9F=C3=9C=C3=96= =C3=84=E2=82=AC as in Finder too). Yes, it's because I've set default-file-name-coding-system to utf-8 on MacOSX, so Emacs should handle MacOSX's filenames correctly. > Maybe we should try to adjust our settings. I haven't touched the defaults of Terminal.app. > I have in Terminal's =C2=ABWindow Preferences=C2=BB Where are these? (I can't get to it right now because my rootfull XDarwin refuses to obey my cmd-option-A escape to switch back to Quartz, but the only preferences I remember seeing where really minimal). >>> TERM_PROGRAM=3DApple_Terminal >>> TERM_PROGRAM_VERSION=3D100.1.4 >>=20 >> Now, the next problem is keyboard input: my meta key doesn't work in >> Terminal.app > That is true for GNU Emacs as X11 client, running in xterm, No. My meta key works just fine with Emacs running as an X11 client or with it running in an xterm (you just have to fix your xterm settings, see `backarrow' in xterm's manpage). Well, OK, meta doesn't work by default with xterm, because xterm's default setting makes it basically impossible to handle it right. (at least with XDarwin; can't remember how Apple's own X11 distribution behaved). But once xterm is fixed, Emacs works correctly. > I actually don't know what Terminal or Apple or both are trying with this > and what it's good for (maybe it's necessary for vi/vim), but with the ab= ove > mentioned settings I can directly input with my German keyboard these sev= en > umlauts and some more with Character Palette utility and Emacs itself wri= tes > the month of March as "M=C3=A4rz" as I set it in calendar-month-name-arra= y and in > calendar-month-abbrev-array: Ah... good. So we can get things to work sensibly. I'll try it as soon as XDarwin lets me. Stefan