From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Cyrillic vs UTF-8 Date: Fri, 25 Apr 2003 19:40:23 +0300 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1858-Fri25Apr2003194023+0300-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1051289136 25295 80.91.224.249 (25 Apr 2003 16:45:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2003 16:45:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 25 18:45:32 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1996KK-0006Zm-00 for ; Fri, 25 Apr 2003 18:45:32 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1996R7-0003PS-00 for ; Fri, 25 Apr 2003 18:52:33 +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 1996L6-0000Rt-03 for emacs-devel@quimby.gnus.org; Fri, 25 Apr 2003 12:46:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1996Iw-0007Mq-00 for emacs-devel@gnu.org; Fri, 25 Apr 2003 12:44:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1996Ij-0007AR-00 for emacs-devel@gnu.org; Fri, 25 Apr 2003 12:43:56 -0400 Original-Received: from gandalf.inter.net.il ([192.114.186.22]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1996Ig-000761-00 for emacs-devel@gnu.org; Fri, 25 Apr 2003 12:43:51 -0400 Original-Received: from zaretsky (cable-128-145.inter.net.il [213.8.128.145]) by gandalf.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AMT97866; Fri, 25 Apr 2003 19:43:20 +0300 (IDT) Original-To: jas@extundo.com X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Simon Josefsson on Fri, 25 Apr 2003 18:12:17 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13450 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13450 > From: Simon Josefsson > Date: Fri, 25 Apr 2003 18:12:17 +0200 > > I think there are two problems. Opening the file the first time > should guess it is a utf-8 file. IIRC, you need to make the priority of utf-8 higher for this to happen. Unless that's changed in the current CVS, try evaluating the following expression: (prefer-coding-system 'utf-8) before you visit a utf-8 encoded file, and see if that helps. I think this is because the encoding detection routines cannot distinguish between Latin-n and utf encoding without some help. Apologies if the current code base no longer works as I remember.