From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?S=E9bastien_Kirche?= Newsgroups: gmane.emacs.devel Subject: Detecting BOM for UTF files Date: Wed, 15 Oct 2003 15:55:54 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <4B3F0F1D-FF17-11D7-BEA9-000393861220@sage.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1066226331 9750 80.91.224.253 (15 Oct 2003 13:58:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 13:58:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 15 15:58:49 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9mAr-0000Xc-00 for ; Wed, 15 Oct 2003 15:58:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9mAr-0000Z8-00 for ; Wed, 15 Oct 2003 15:58:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9mA1-0003YA-LM for emacs-devel@quimby.gnus.org; Wed, 15 Oct 2003 09:57:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9m9U-0003Ww-3V for emacs-devel@gnu.org; Wed, 15 Oct 2003 09:57:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9m8x-0003GG-3W for emacs-devel@gnu.org; Wed, 15 Oct 2003 09:57:22 -0400 Original-Received: from [195.25.216.129] (helo=Mis.sage.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9m8w-0003FL-RP for emacs-devel@gnu.org; Wed, 15 Oct 2003 09:56:50 -0400 Original-Received: from sage.com (SEKIMACG4 [172.18.3.54]) by Mis.sage.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TFSGAVPZ; Wed, 15 Oct 2003 15:59:48 +0200 Original-To: emacs-devel X-Mailer: Apple Mail (2.552) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17110 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17110 Hi, I recently had to switch my .emacs to UTF-8 encoding, because I was=20 annoyed with proper encoding of french acccents between my home Emacs=20 (win + linux) and my work Emacs (Mac OS X). I saw then that Emacs cannot recognize automagically the UTF format of=20= my .emacs when reloading it. I seen that there is neither BOM (byte order mark) at the beginning,=20 nor adding one helps. It was also fixed by adding ; -*- mode: emacs-lisp; coding: utf-8; -*- at the begining. Emacs seems to handle properly UTF files, but couldn't he "guess" their=20= encoding by reading BOMs ? S=E9bastien Kirche