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: 09 Apr 2005 20:26:22 -0400 Message-ID: <86mzs779zl.fsf@localhost.localdomain> References: <86zmwfv3hj.fsf@localhost.localdomain> <86oecs7kvx.fsf@localhost.localdomain> <8764yzc3ro.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113092854 28650 80.91.229.2 (10 Apr 2005 00:27:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2005 00:27:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 10 02:27:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DKQIM-0001q9-RM for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Apr 2005 02:27:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKPsA-0004QD-TL for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2005 20:00:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!border2.nntp.dca.giganews.com!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: Sat, 09 Apr 2005 19:26:13 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Lines: 33 Original-NNTP-Posting-Host: 70.24.147.173 Original-X-Trace: sv3-7hQpFGnRl9+irTl9JZUqxtq+WsJ+ZykR2+V8O2yvol4igXBJZ9fEIk87I0uC8y49nf0sDrDADFynx+z!TT2d1mfk/z5LjZ9TVu++VC2ioXvEUiCtUE24YHRZpZG/jjdw+lfLjgRK10+uMYzIMA32/Y8GVPCV 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.31 Original-Xref: shelby.stanford.edu gnu.emacs.help:129957 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:25520 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25520 Stefan Monnier writes: > > (set-terminal-coding-system 'iso-8859-5) > > If you properly set your locale this won't be necessary. > > > Stefan You are right. Running the command "locale -a" I see that the locale for Bulgarian is bg_BG. I set the following variables: LC_ALL=bg_BG LANG=bg_BG LANGUAGE=bg_BG This didn't help. The other locale for Bulgarian is bg_BG.cp1251. However my files are encoded in iso8859-5. I noticed that there is a Russian locale ru_RU.iso88595: I tried it and it worked: I didn't need the "set-terminal-coding-system" call with this locale. So in the end, the problem can be fixed either with set-terminal-coding-system or with setting the appropriate locale. But I wonder why there is no Bulgarian locale with iso-8859-5 encoding? After all, that is supposed to be the standard. -- vedm