From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: "Outer world" encoding for non-Latin1 language environments Date: Thu, 28 Feb 2002 20:28:08 -0500 Message-ID: <200203010128.g211S8g05748@rum.cs.yale.edu> References: <20020227132949.C18112@fmi.uni-sofia.bg> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014946485 24762 195.204.10.66 (1 Mar 2002 01:34:45 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 1 Mar 2002 01:34:45 GMT Cc: emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16gbwa-0006RI-00 for ; Fri, 01 Mar 2002 02:34:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gbs4-0001K3-00; Thu, 28 Feb 2002 20:30:04 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gbqP-0001Fu-00 for ; Thu, 28 Feb 2002 20:28:21 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g211S8g05748; Thu, 28 Feb 2002 20:28:08 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Anton Zinoviev Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1660 > Note the (setup-function . setup-koi8u-coding-system) and > (exit-function . reset-coding-system). They can be defined by > (features cyril-util) in this way: > > (defun setup-koi8u-coding-system () > (let () > (set-keyboard-coding-system 'koi8-u) > (set-clipboard-coding-system 'koi8-u) > (set-terminal-coding-system 'koi8-u))) > > (defun reset-coding-system () > (let () > (set-keyboard-coding-system 'latin-1) > (set-clipboard-coding-system nil) > (set-terminal-coding-system nil))) > > Maybe someone will propose a better solution? Maybe all it takes is to use set-locale-environment rather than set-language-environment ? Also maybe koi8-u should be added to `standard-keyboard-coding-systems' ? Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel