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 11:15:12 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1210938096 21116 80.91.229.12 (16 May 2008 11:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 11:41:36 +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 13:42:14 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 1JwyJk-0003St-BM for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 13:41:44 +0200 Original-Received: from localhost ([127.0.0.1]:39075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwyJ0-0008JN-TP for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 07:40:58 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!agate.berkeley.edu!ilya Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: powdermilk.math.berkeley.edu Original-X-Trace: agate.berkeley.edu 1210936512 2659 169.229.140.13 (16 May 2008 11:15:12 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Fri, 16 May 2008 11:15:12 +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:158690 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:54053 Archived-At: [A complimentary Cc of this posting was sent to Eli Zaretskii ], who wrote in article : > > > You need to decide whether you want Emacs or cat. Emacs is not cat, > > > and cannot be convinced to work like cat. > > Well, with --unibyte it does act as cat. > No, it does not. What it does is jumping through the hoops to try > very hard to make you _think_ it does. That's good enough for me. So: how I convince Emacs to do the same without --unibyte? > > > Let Emacs work like it was designed to: decode characters when you > > > visit a file and encode them back when it displays them on the screen. > > > Try it, it really works. > > > > Thanks. I did. It did not. > > Well, let's hear what you did to customize Emacs, and what problems > you saw. I explained it in my first message, did not I? What more do you want to hear? (LANG is undefined.) For simplicity, you may assume that the user has no idea what is the encoding of TTY input and output - but the user knows that they match perfectly (and would remain the same tomorrow). All user wants to do is to take notes (so they are visible in scratch buffer), save them to a file, and get they intact next day (using the same TTY). > But again, to give you efficient advice, I need to know what > scripts can your display and keyboard support. For example, I assume > that you are using a text-mode terminal that can display Cyrillic > letters if it receives them KOI8-R encoded -- is that right? OK, if this is the simplest case for you to cover: assume that the user knows that the TTY works in KOI8-r. > What about the keyboard -- how do you type Cyrillic characters, This is a TTY. You have no idea what I do to make it send certain bytes - and you should not care. > and what 8-bit codes does your keyboard setup produce? All of them. [Assume that 0..0x1f are reserved for standard control chars] > are they also KOI8-R encoded? As I said, input and output encodings match. Hope this helps, Ilya