From: vedm <ns@nospam.com>
Subject: Re: Emacs in xterm and Cyrillic?
Date: 05 Apr 2005 21:29:38 -0400 [thread overview]
Message-ID: <86oecs7kvx.fsf@localhost.localdomain> (raw)
In-Reply-To: mailman.78.1112634873.2895.help-gnu-emacs@gnu.org
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 04.04.2005 um 01:34 schrieb vedm:
>
> > When I start emacs in xterm (emacs -nw) I can not read Cyrillic text: I
> > see only question marks.
>
> First you should set in GNU Emacs a language environment: Cyrillic-ALT,
> Cyrillic-ISO, Cyrillic-KOI8, Ukrainian ... This should already prepare
> most things.
>
> If this doesn't help yet, then there are environment variables in
> xterm's shell, LANG and LC_CTYPE. GNU Emacs 22 will reverse this
> sequence.
>
> If this still is not sufficient you have in GNU Emacs a few variables
> and functions with 'coding-system' you can set, for example:
>
> (set-terminal-coding-system 'XXX)
> (prefer-coding-system 'XXX)
> (setq default-buffer-file-coding-system 'XXX)
>
Thanks for the help, it turned out that the following solves the
problem:
(set-terminal-coding-system 'iso-8859-5)
That's because in my .Xdefaults I have this:
==
Rxvt*font: -misc-fixed-medium-r-normal-*-20-200-*-75-c-100-iso8859-5
xterm*font: -misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso8859-5
==
(iso-8859-5 is the standard cyrillic encoding, although it is much less
used than the Microsoft non-standard cp1251 aka windows-1251)
--
vedm
next prev parent reply other threads:[~2005-04-06 1:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-03 23:34 Emacs in xterm and Cyrillic? vedm
2005-04-04 17:43 ` Peter Dyballa
2005-04-05 20:49 ` Stefan Monnier
[not found] ` <mailman.78.1112634873.2895.help-gnu-emacs@gnu.org>
2005-04-06 1:29 ` vedm [this message]
2005-04-06 8:18 ` Peter Dyballa
2005-04-06 15:40 ` Stefan Monnier
2005-04-10 0:26 ` vedm
[not found] ` <mailman.354.1112774023.2895.help-gnu-emacs@gnu.org>
2005-04-10 0:58 ` vedm
2005-04-10 12:54 ` Recommendations: emacs files containing multiple languages ken
2005-04-10 13:33 ` Peter Dyballa
2005-04-10 19:06 ` Eli Zaretskii
2005-04-10 13:20 ` Emacs in xterm and Cyrillic? Peter Dyballa
2005-04-11 17:48 ` Kevin Rodgers
[not found] ` <mailman.1082.1113240243.2895.help-gnu-emacs@gnu.org>
2005-04-14 1:47 ` vedm
2005-04-14 2:03 ` vedm
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=86oecs7kvx.fsf@localhost.localdomain \
--to=ns@nospam.com \
/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.
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).