From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vedm Newsgroups: gmane.emacs.help Subject: Re: Emacs in xterm and Cyrillic? Date: 05 Apr 2005 21:29:38 -0400 Message-ID: <86oecs7kvx.fsf@localhost.localdomain> References: <86zmwfv3hj.fsf@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112750922 20376 80.91.229.2 (6 Apr 2005 01:28:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 01:28:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 06 03:28:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DIzLN-0001VQ-LS for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Apr 2005 03:28:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIyuN-0000m2-Ia for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Apr 2005 21:00:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.rogers.com!news.rogers.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 05 Apr 2005 20:29:37 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Lines: 40 Original-NNTP-Posting-Host: 70.24.147.173 Original-X-Trace: sv3-HMsuh1yL5/MmcljVB/UPVwqS5uLnoRLqS4D6C0fZ8z8L0jpHG6/aj91KeY2TDxKnBoNziW5aFNYqF4l!LNgbOcguCaVAEmVBcboiR7cRgB59UxVafLz0VL2VexvXw1dinVKFLqs6oon9axwHycyY+BTjSOdz Original-X-Complaints-To: abuse@rogers.com X-DMCA-Complaints-To: abuse@rogers.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:129854 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25412 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25412 Peter Dyballa 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