From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: stig Newsgroups: gmane.emacs.help Subject: possible setup for emacs on RH9 to work with nordic chars =?iso-8859-1?q?=E5=E4=F6_=E6=F8=E5?= Date: Tue, 22 Apr 2003 22:17:01 +0200 Organization: ABC-Klubben Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: main.gmane.org 1051043368 27711 80.91.224.249 (22 Apr 2003 20:29:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2003 20:29:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 22 22:29:23 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1984NS-00078C-00 for ; Tue, 22 Apr 2003 22:28:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1984Ky-0008Lb-08 for gnu-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2003 16:25:56 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!news.algonet.se!algonet!oden.abc.se!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help,linux.redhat,linux.redhat.install,linux.redhat.misc Original-Followup-To: comp.emacs Original-Lines: 82 Original-NNTP-Posting-Host: as6-3-5.djh.s.bonet.se Original-X-Trace: oden.abc.se 1051042799 3723 217.215.133.231 (22 Apr 2003 20:19:59 GMT) Original-X-Complaints-To: abuse@abc.se Original-NNTP-Posting-Date: Tue, 22 Apr 2003 20:19:59 +0000 (UTC) User-Agent: KNode/0.7.2 Original-Xref: shelby.stanford.edu comp.emacs:78851 gnu.emacs.help:112189 linux.redhat:76919 linux.redhat.install:122082 linux.redhat.misc:30010 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8688 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8688 for those of you that have some struggle getting emacs 21.2 on RH9 working with nordic charachters like והצ (and possibly זר and others). RH9 is using UTF-8 for fontencoding, perhaps you do not want to save your files in UTF-8 mode. i do not want it for compabilityreasons. here is how i set it up: if you have rootaccess, edit the file /usr/share/emacs/site-lisp/site-start.el by default redhat put the following in: --- start part of /usr/share/emacs/site-lisp/site-start.el on RH9 --- ; Enable utf-8 in locales using utf-8. In RHL, all of these end in ".UTF-8". ;; The utf-8 support in Emacs is limited, problems can be expected - especially ;; outside latin-1 (cond ((equal (substring (concat " " (or (getenv "LC_ALL") (getenv "LC_CTYPE") (getenv "LANG"))) -5) "UTF-8") (setq locale-coding-system 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'utf-8) (prefer-coding-system 'utf-8))) --- end part of /usr/share/emacs/site-lisp/site-start.el on RH9 --- however changing to: --- start part of /usr/share/emacs/site-lisp/site-start.el changed --- ;; Enable utf-8 in locales using utf-8. In RHL, all of these end in ".UTF-8". ;; The utf-8 support in Emacs is limited, problems can be expected - especially ;; outside latin-1 ;;(cond ((equal (substring (concat " " (or (getenv "LC_ALL") ;; (getenv "LC_CTYPE") ;; (getenv "LANG"))) ;; -5) ;; "UTF-8") ;, (setq locale-coding-system 'utf-8) ;; (set-terminal-coding-system 'utf-8) ;; (set-keyboard-coding-system 'utf-8) ;; (set-selection-coding-system 'utf-8) ;; (prefer-coding-system 'utf-8))) (setq locale-coding-system 'iso-latin-1) (set-terminal-coding-system 'iso-latin-1) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'iso-latin-1) (prefer-coding-system 'iso-latin-1) --- end part of /usr/share/emacs/site-lisp/site-start.el changed --- the idea seems to be setting keybord-coding to utf-8 and the rest to whatever you like (iso-latin-1 in my case). if you do not have rootaccess but have problems it should work putting the lines: (setq locale-coding-system 'iso-latin-1) (set-terminal-coding-system 'iso-latin-1) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'iso-latin-1) (prefer-coding-system 'iso-latin-1) in your ~/.emacs file. other information: running: redhat-config-keyboard i have swedish keyboard selected. regards stig