From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rahed@cwazy.co.uk Newsgroups: gmane.emacs.help Subject: Re: searching for non ascii characters Date: Wed, 03 Aug 2005 15:28:15 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1250 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1123076002 13589 80.91.229.2 (3 Aug 2005 13:33:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2005 13:33:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 03 15:33:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0JMD-0004XB-RA for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Aug 2005 15:32:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0JOy-0006Ab-Ae for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Aug 2005 09:35:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!freenix!oleane.net!oleane!in2p3.fr!irazu.switch.ch!switch.ch!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 80.188.171.52 Original-X-Trace: quimby.gnus.org 1123072098 14348 80.188.171.52 (3 Aug 2005 12:28:18 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 3 Aug 2005 12:28:18 +0000 (UTC) User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:KNvxEtUQc9KjohkhyNsh+pKlTQg= Original-Xref: shelby.stanford.edu gnu.emacs.help:132873 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:28390 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28390 Peter Dyballa writes: >> with C-s. After saving and reading the file from a disc non ascii >> characters >> cannot be found. When I do C-u C-x C-= on non ascii char before > > Put a line like > > ;;; -*- mode: Text; coding: iso-8859-2; -*- > > in the file's header. Could be a I put the line as my first file line. The symptoms are unchanged. > (prefer-coding-system 'iso-latin-2-unix) > > is already OK. The environment variable LC_CTYPE is important: GNU > Emacs sets a few things after this. In particular > default-buffer-file-coding-system gets derived from this. Then there's > file-coding-system-alist ... I also included (prefer-coding-system 'iso-latin-2-unix) in my .emacs (before I had cp1250). So charsets are now as if I didn't do any changes. character listing after writing and reading from a disc: character: š (01210241, 331937, 0x510a1) charset: mule-unicode-0100-24ff (Unicode characters of the range U+0100..U+24FF.) code point: 33 33 syntax: word category: l:Latin buffer code: 0x9C 0xF4 0xA1 0xA1 file code: B9 (encoded by coding system iso-latin-2-unix) font: -outline-Courier New-normal-r-normal-normal-13-97-96-96-c-80-iso10646-1 Thank you, any hints appreciated. Radek