unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan <monnier@iro.umontreal.ca>
Cc: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>, emacs-devel@gnu.org
Subject: Re: Coding systems and Terminal.app on Mac OS X
Date: Thu, 24 Mar 2005 20:17:51 -0500	[thread overview]
Message-ID: <m17jjwh71k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <76bf85cfe204136f51ff3b4119616af5@Web.DE> (Peter Dyballa's message of "Fri, 25 Mar 2005 00:34:55 +0100")

> 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 äöüßÜÖÄ€ 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 «Window Preferences»

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=Apple_Terminal
>>> TERM_PROGRAM_VERSION=100.1.4
>> 
>> 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 above
> mentioned settings I can directly input with my German keyboard these seven
> umlauts and some more with Character Palette utility and Emacs itself writes
> the month of March as "März" as I set it in calendar-month-name-array 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

  reply	other threads:[~2005-03-25  1:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f299b5aff3dd75c085f0a42b55b17a0e@Web.DE>
     [not found] ` <jwvk6o1q9cw.fsf-monnier+emacs@gnu.org>
     [not found]   ` <8e7ecd4be6d2db7520f896189a1b135b@Web.DE>
     [not found]     ` <jwvoedcobu6.fsf-monnier+emacs@gnu.org>
     [not found]       ` <f0de7559de8d656a196888e422953ea3@Web.DE>
     [not found]         ` <m1r7i7rdut.fsf-monnier+emacs@gnu.org>
     [not found]           ` <79e39130065cf34bca7eb33e35eff18d@Web.DE>
     [not found]             ` <jwvoedbo6cd.fsf-monnier+emacs@gnu.org>
     [not found]               ` <9b795a5704f093bfe3dbec55935dc49d@Web.DE>
     [not found]                 ` <wl3bunrtym.wl%mituharu@math.s.chiba-u.ac.jp>
     [not found]                   ` <355667b4edbd0f6e8c22264e0bd9f6b3@Web.DE>
     [not found]                     ` <m1hdj2pmos.fsf-monnier+emacs@gnu.org>
     [not found]                       ` <f1fa2c293dc7a2c8cf9272fd9dd4a080@Web.DE>
2005-03-24 17:17                         ` Coding systems and Terminal.app on Mac OS X Stefan
2005-03-24 23:34                           ` Peter Dyballa
2005-03-25  1:17                             ` Stefan [this message]
2005-03-25  1:42                               ` Peter Dyballa
2005-03-25 14:01                             ` Stefan Monnier
2005-03-25 14:56                               ` Peter Dyballa
2005-03-25 16:00                                 ` Sébastien Kirche
     [not found]                             ` <m3is3fr2zw.fsf@seneca.benny.turtle-trading.net>
2005-03-25 22:56                               ` Peter Dyballa

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m17jjwh71k.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).