* displaying latin1 in emacs 21 in an osx Terminal window
@ 2003-01-06 17:05 Schone Mullerin
2003-01-07 17:44 ` Benjamin Riefenstahl
0 siblings, 1 reply; 10+ messages in thread
From: Schone Mullerin @ 2003-01-06 17:05 UTC (permalink / raw)
I can't seem to get emacs21 running in an osx Terminal window to
display latin1 properly. It works fine when run as an X11 client, or
as a Carbon window, or even in an xterm. The Terminal application
itself has no problem with latin1 -- xemacs21 displays latin1 properly
in this environment, for instance.
How can I get proper latin1 emacs display in a Terminal window?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in an osx Terminal window
2003-01-06 17:05 displaying latin1 in emacs 21 in an osx Terminal window Schone Mullerin
@ 2003-01-07 17:44 ` Benjamin Riefenstahl
2003-01-07 23:21 ` Schone Mullerin
0 siblings, 1 reply; 10+ messages in thread
From: Benjamin Riefenstahl @ 2003-01-07 17:44 UTC (permalink / raw)
Schone Mullerin <smullerin@deutsches.lieder.net> writes:
> I can't seem to get emacs21 running in an osx Terminal window to
> display latin1 properly.
You need to make sure the encoding that Terminal.app uses is the same
as the one Emacs thinks it is.
Terminal.app has this configured in the "Window Settings...->Display"
tab. It is set to UTF-8 by default, I think. If you don't really
need UTF-8 you can set this to "Western (ISO Latin 1)" and things
should just work.
If you *do* need UTF-8, just ask again, it's also possible to
configure Emacs to use that.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in an osx Terminal window
2003-01-07 17:44 ` Benjamin Riefenstahl
@ 2003-01-07 23:21 ` Schone Mullerin
2003-01-08 8:39 ` Hans-Peter Binder
0 siblings, 1 reply; 10+ messages in thread
From: Schone Mullerin @ 2003-01-07 23:21 UTC (permalink / raw)
In article <m3smw497n8.fsf@cicero.benny.turtle-trading.net>, Benjamin
Riefenstahl wrote:
>
> You need to make sure the encoding that Terminal.app uses is the same
> as the one Emacs thinks it is.
I know. As I mentioned before, Terminal itself is fine with latin1.
If I run xemacs (as opposed to gnu emacs) in a Terminal, it displays
latin1 properly. Likewise if I simply cat a file with latin1 chars
in it. It's only gnu emacs in a Terminal that isn't behaving.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in an osx Terminal window
2003-01-07 23:21 ` Schone Mullerin
@ 2003-01-08 8:39 ` Hans-Peter Binder
2003-01-08 12:03 ` displaying latin1 in emacs 21 in _any_ terminal window Hugo Wolf
0 siblings, 1 reply; 10+ messages in thread
From: Hans-Peter Binder @ 2003-01-08 8:39 UTC (permalink / raw)
* Schone Mullerin <smullerin@deutsches.lieder.net> writes:
> In article <m3smw497n8.fsf@cicero.benny.turtle-trading.net>, Benjamin
> Riefenstahl wrote:
>>
>> You need to make sure the encoding that Terminal.app uses is the same
>> as the one Emacs thinks it is.
>
> I know. As I mentioned before, Terminal itself is fine with latin1.
That's OK (/bin/tcsh) and in .emacs
(set-keyboard-coding-system 'iso-8859-1)
will do the job
FYI I also have
(set-language-environment 'German)
(set-frame-font "fontset-mac")
HTH
Regards/Gruesse
Hans-Peter Binder
--
(coffee-mode 1)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in _any_ terminal window
2003-01-08 8:39 ` Hans-Peter Binder
@ 2003-01-08 12:03 ` Hugo Wolf
2003-01-08 16:01 ` Hans-Peter Binder
0 siblings, 1 reply; 10+ messages in thread
From: Hugo Wolf @ 2003-01-08 12:03 UTC (permalink / raw)
In article <pb.m21y3ot4qx.fsf@ID-42241.news.dfncis.de>, Hans-Peter
Binder wrote:
> (set-keyboard-coding-system 'iso-8859-1)
Makes no difference - special latin1 chars still display as '?'. Note
that the problem I'm trying to solve here is display, not entry. I
can enter latin1 chars fine, I just can't see them properly.
> (set-language-environment 'German)
I tried this too, although I wouldn't want it in general. It made no
difference.
> (set-frame-font "fontset-mac")
Likewise, makes no difference. I wouldn't expect the 'frame-font' to
make any difference when running -nw. All latin1 character above
octal 240 still display as '?'.
Let me summarize again and correct something I said earlier:
- These characters display fine in xemacs running in a Terminal or
xterm or rxvt.
- These characters display fine in gnu emacs running in a Carbon/Aqua
window.
- These characters display fine in any emacs running as an X11 client.
- These characters display fine in a Terminal or xterm or rxvt if
simply cat a file.
- These characters display as '?' when running gnu emacs (21.1, 21.2
or 21.3) in a Terminal or an xterm or an rxvt. Earlier I said that
it worked when running gnu emacs in an xterm. After double-checking
that, I see that I was mistaken. So nothing about this problem is
specific to the osx Terminal application. The display is wrong in
when running gnu emacs in _any_ kind of terminal.
Any other suggestions?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in _any_ terminal window
2003-01-08 12:03 ` displaying latin1 in emacs 21 in _any_ terminal window Hugo Wolf
@ 2003-01-08 16:01 ` Hans-Peter Binder
2003-01-08 16:27 ` Schone Mullerin
0 siblings, 1 reply; 10+ messages in thread
From: Hans-Peter Binder @ 2003-01-08 16:01 UTC (permalink / raw)
* Hugo Wolf <hwolf@deutsches.lieder.net> writes:
[latin-1 in terminal in OSX]
> Let me summarize again and correct something I said earlier:
>
> - These characters display fine in xemacs running in a Terminal or
> xterm or rxvt.
>
> - These characters display fine in gnu emacs running in a Carbon/Aqua
> window.
>
> - These characters display fine in any emacs running as an X11 client.
>
> - These characters display fine in a Terminal or xterm or rxvt if
> simply cat a file.
>
> - These characters display as '?' when running gnu emacs (21.1, 21.2
> or 21.3) in a Terminal or an xterm or an rxvt. Earlier I said that
> it worked when running gnu emacs in an xterm. After double-checking
> that, I see that I was mistaken. So nothing about this problem is
> specific to the osx Terminal application. The display is wrong in
> when running gnu emacs in _any_ kind of terminal.
>
> Any other suggestions?
I've tried it on my machine with OSX v10.1.5 and Emacs-21.3.50 built
from cvs at 06.01.03
I wrote a text with (Carbon)Emacs with Latin-1-chars like ÄöÜ and save
it.
I start emacs in a Terminal 1. with emacs -nw then open the file and
*I can see* the latin-1-chars, 2. with emacs -nw -no-init-file and it's
the same.
CVS-Emacs-21.3 can display latin-1-chars in terminal.app with tcsh and
preferences for Coding-System ISO Latin 1 _out of the box_.
Sorry, I can't help you.
Regards/Gruesse
Hans-Peter Binder
--
(coffee-mode 1)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in _any_ terminal window
2003-01-08 16:01 ` Hans-Peter Binder
@ 2003-01-08 16:27 ` Schone Mullerin
2003-01-08 21:28 ` Hans-Peter Binder
0 siblings, 1 reply; 10+ messages in thread
From: Schone Mullerin @ 2003-01-08 16:27 UTC (permalink / raw)
In article <pb.m21y3n1vh0.fsf@ID-42241.news.dfncis.de>, Hans-Peter
Binder wrote:
> I start emacs in a Terminal 1. with emacs -nw then open the file and
> *I can see* the latin-1-chars,
Is your osx environment "internationalized" in any special (eg German)
way? That may be the difference. I need to run in the default
US/English environment.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in _any_ terminal window
2003-01-08 16:27 ` Schone Mullerin
@ 2003-01-08 21:28 ` Hans-Peter Binder
2003-01-08 22:25 ` Hans-Peter Binder
0 siblings, 1 reply; 10+ messages in thread
From: Hans-Peter Binder @ 2003-01-08 21:28 UTC (permalink / raw)
* Schone Mullerin <smullerin@deutsches.lieder.net> writes:
> In article <pb.m21y3n1vh0.fsf@ID-42241.news.dfncis.de>, Hans-Peter
> Binder wrote:
>> I start emacs in a Terminal 1. with emacs -nw then open the file and
>> *I can see* the latin-1-chars,
>
> Is your osx environment "internationalized" in any special (eg German)
> way? That may be the difference. I need to run in the default
> US/English environment.
Yes it is, I have a German OSX. But I have also Differences between
the Emacs versions and latin-1-characters. With Version 21.3 from CVS
I have Latin-1 out of the box in terminal.app, but with the OSX
builtin emacs-20.7 I can't see Latin-1-chars. Maybe there is no
Mule-support in older Emacsen.
Regards/Gruesse
Hans-Peter Binder
--
(coffee-mode 1)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in _any_ terminal window
2003-01-08 21:28 ` Hans-Peter Binder
@ 2003-01-08 22:25 ` Hans-Peter Binder
2003-01-09 3:01 ` Hugo Wolf
0 siblings, 1 reply; 10+ messages in thread
From: Hans-Peter Binder @ 2003-01-08 22:25 UTC (permalink / raw)
* Hans-Peter Binder <tethys.pb@gmx.net> writes:
> * Schone Mullerin <smullerin@deutsches.lieder.net> writes:
[...]
> Yes it is, I have a German OSX. But I have also Differences between
> the Emacs versions and latin-1-characters. With Version 21.3 from CVS
> I have Latin-1 out of the box in terminal.app, but with the OSX
> builtin emacs-20.7 I can't see Latin-1-chars. Maybe there is no
> Mule-support in older Emacsen.
I must correct this. With (set-terminal-coding-system 'iso-8859-1)
I can see latin-1 in terminal.app with emacs-20.7
You can try
emacs -q -no-site-file -nw \
--eval "(set-terminal-coding-system 'iso-8859-1)" testfile
HTH
Regards/Gruesse
Hans-Peter Binder
--
(coffee-mode 1)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: displaying latin1 in emacs 21 in _any_ terminal window
2003-01-08 22:25 ` Hans-Peter Binder
@ 2003-01-09 3:01 ` Hugo Wolf
0 siblings, 0 replies; 10+ messages in thread
From: Hugo Wolf @ 2003-01-09 3:01 UTC (permalink / raw)
In article <pb.m2iswznusa.fsf@ID-42241.news.dfncis.de>, Hans-Peter
Binder wrote:
> (set-terminal-coding-system 'iso-8859-1)
Well, this works. Many thanks. I know that someone, possibly you,
recommended this yesterday, and I tried it without success at that
time. Since it works fine now, I can only assume I mistyped it or
committed some other user error.
Thanks again --
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-01-09 3:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-06 17:05 displaying latin1 in emacs 21 in an osx Terminal window Schone Mullerin
2003-01-07 17:44 ` Benjamin Riefenstahl
2003-01-07 23:21 ` Schone Mullerin
2003-01-08 8:39 ` Hans-Peter Binder
2003-01-08 12:03 ` displaying latin1 in emacs 21 in _any_ terminal window Hugo Wolf
2003-01-08 16:01 ` Hans-Peter Binder
2003-01-08 16:27 ` Schone Mullerin
2003-01-08 21:28 ` Hans-Peter Binder
2003-01-08 22:25 ` Hans-Peter Binder
2003-01-09 3:01 ` Hugo Wolf
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).