From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: Is it possible to use new Emacsen with non-ASCII? Date: Fri, 16 May 2008 07:24:49 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Message-ID: References: <39eea3f0-65d9-4a9f-aeda-ffeb7e7ef52d@t54g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1210923709 8121 80.91.229.12 (16 May 2008 07:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 07:41:49 +0000 (UTC) Bcc: ilya To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 16 09:42:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JwuZ8-00050T-QZ for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 09:41:23 +0200 Original-Received: from localhost ([127.0.0.1]:58145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwuYP-0000jC-BE for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 03:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!ilya Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: powdermilk.math.berkeley.edu Original-X-Trace: agate.berkeley.edu 1210922689 97859 169.229.140.13 (16 May 2008 07:24:49 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Fri, 16 May 2008 07:24:49 +0000 (UTC) User-Agent: trn [how to get a version via %-escapes???] with a custom header X-How-To-Reach-Me: The From: address is valid X-How-To-Disable-Cc: Put in the headers the line: Mail-Copies-To: never Originator: ilya@powdermilk.math.berkeley.edu Original-Xref: news.stanford.edu gnu.emacs.help:158673 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:54033 Archived-At: [A complimentary Cc of this posting was sent to Eli Zaretskii ], who wrote in article : > > > What is (terminal-coding-system) set to? > > > > When? After (set-language-environment "Cyrillic-KOI8")? nil > > Then set it to whatever your terminal supports (koi8-r, I presume, but > that's a guess). "M-x set-terminal-coding-system RET koi8-r RET". And why set-language-environment did not do it? > Alternatively, try "(set-locale-environment koi8-r)", and see if that > does what you want. This will also set your keyboard encoding to > koi8-r, and I'm not sure you want that. (Maybe you should consider > describing more about what you want: what files do you want to edit, > how would you like your keyboard to be set, and what characters can > your terminal display. There are probably a couple of lines you need > to add to your .emacs to get what you want, but it's hard to give > advice without knowing the conditions.) I did describe what I want (but maybe in a different place in the thread): Be as smart as cat is. Allow characters which are input from keyboard (TTY), and allow them to be written a file. > > > If your LANG or LC_ALL environment variables are set appropriately, > > > Emacs should automatically use the correct terminal-coding-system, > > > language-environment etc. > > > > Irrelevant. I can't set LANG. > That's quite understandable, but set-locale-environment from within > Emacs has the same effect on Emacs, and doesn't affect anything but > Emacs. I do not follow. Do you say that set-locale-environment is going to be useless anyway if the locale is not supported by the CRTL? Then what should I do? [Suppose for a moment that I do not care which 8-bit chars are word chars, which are whitespace etc. All I need Emacs is to read bytes from TTY, and write them down to a file.] Thanks, Ilya