* Emacs, terminal, and terminal coding schemes
@ 2002-12-19 21:13 Torsten Bronger
2002-12-20 15:12 ` Kai Großjohann
0 siblings, 1 reply; 4+ messages in thread
From: Torsten Bronger @ 2002-12-19 21:13 UTC (permalink / raw)
Halloechen!
Just deleted my GNU Emacs 20 and installed
GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
I'm a console terminal user. I mostly use it
in the XTerm ("Konsole 1.0.1 (KDE 2.1.2)"), but also in the
ordinary text mode terminal.
Two major problems:
1. My terminals use latin-9 (German environment). My
.emacs contains
(codepage-setup "850")
(prefer-coding-system 'cp850-dos)
(prefer-coding-system 'iso-latin-1)
; (set-language-environment "Latin-9")
(if (eq window-system nil) (set-terminal-coding-system 'latin-1))
(if (eq window-system nil) (set-keyboard-coding-system 'latin-1))
But when I change this to "latin-9" all characters
(even thost that are common in latin-1 and -9)
turn into "?". What am I doing wrong?
2. In the xterm, my keyboard layout must be latin-1
apparently. On the tty console this is wrong and
should be cp850 instead. How can I create
.emacs code that can handle both?
Thank you!
Tschoe,
Torsten.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs, terminal, and terminal coding schemes
2002-12-19 21:13 Emacs, terminal, and terminal coding schemes Torsten Bronger
@ 2002-12-20 15:12 ` Kai Großjohann
2002-12-24 3:33 ` Jonathon Isaac Swiderski
0 siblings, 1 reply; 4+ messages in thread
From: Kai Großjohann @ 2002-12-20 15:12 UTC (permalink / raw)
Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> But when I change this to "latin-9" all characters
> (even thost that are common in latin-1 and -9)
> turn into "?". What am I doing wrong?
Well, with your settings you are editing Latin-1 text but tell Emacs
that your terminal displays Latin-9. Emacs doesn't know that it some
Latin-1 characters look the same as some Latin-9 characters, so it
doesn't think it can display the Latin-1 chars in the
Latin-9-displaying terminal.
If your language environment would agree with the terminal, then it
would work better.
FWIW, I just set $LC_CTYPE to de_DE@euro and don't need to change
anything else.
--
~/.signature is: umop ap!sdn (Frank Nobis)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs, terminal, and terminal coding schemes
2002-12-20 15:12 ` Kai Großjohann
@ 2002-12-24 3:33 ` Jonathon Isaac Swiderski
2002-12-24 9:06 ` Kai Großjohann
0 siblings, 1 reply; 4+ messages in thread
From: Jonathon Isaac Swiderski @ 2002-12-24 3:33 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]
kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
> Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
>
> > But when I change this to "latin-9" all characters
> > (even thost that are common in latin-1 and -9)
> > turn into "?". What am I doing wrong?
>
> Well, with your settings you are editing Latin-1 text but tell Emacs
> that your terminal displays Latin-9. Emacs doesn't know that it some
> Latin-1 characters look the same as some Latin-9 characters, so it
> doesn't think it can display the Latin-1 chars in the
> Latin-9-displaying terminal.
>
> If your language environment would agree with the terminal, then it
> would work better.
I have set C-x RET t iso-latin-1 and C-x RET t iso-8859-1 (I've tried -9, too),
and Gnus (5.7/Emacs 20.7) still doesn't understand characters --- while Pine's
newsreader (whose coding system is set to iso-8859-1 also) correctly displays
accents, umlauts, etc. correctly, Gnus display's Kai's last name as
"Gro\337johann" or "=?iso-8859-1?q?G". All this in the same terminal emulator,
PuTTY.
What settings/shell-variables do I need to fix this?
--
Jonathon Isaac Swiderski \\ dangercat-20@dangercat.net
cs.oberlin.edu/~jswiders \\ www.dangercat.net/resume
"You know what really bothers me? We're only able to keep
you guys out of society for four years." - OC CompSci prof
"Hey! There's still grad school!" - Student
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs, terminal, and terminal coding schemes
2002-12-24 3:33 ` Jonathon Isaac Swiderski
@ 2002-12-24 9:06 ` Kai Großjohann
0 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2002-12-24 9:06 UTC (permalink / raw)
Jonathon Isaac Swiderski <jonswid@umich.edu> writes:
> I have set C-x RET t iso-latin-1 and C-x RET t iso-8859-1 (I've
> tried -9, too), and Gnus (5.7/Emacs 20.7) still doesn't understand
> characters --- while Pine's newsreader (whose coding system is set
> to iso-8859-1 also) correctly displays accents, umlauts,
> etc. correctly, Gnus display's Kai's last name as "Gro\337johann" or
> "=?iso-8859-1?q?G". All this in the same terminal emulator, PuTTY.
If you see =?iso-8859-1?q?, then it's a different problem. This is a
Mule encoding, and Gnus 5.7 does not grok Mule.
I recommend that you install Gnus 5.8 which does grok Mule.
--
~/.signature is: umop ap!sdn (Frank Nobis)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-24 9:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19 21:13 Emacs, terminal, and terminal coding schemes Torsten Bronger
2002-12-20 15:12 ` Kai Großjohann
2002-12-24 3:33 ` Jonathon Isaac Swiderski
2002-12-24 9:06 ` Kai Großjohann
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).