help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening file in UTF-8 mode automatically


From: Reiner Steib
Subject: Re: Opening file in UTF-8 mode automatically
Date: Sun, 25 Nov 2007 12:33:35 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

On Sun, Nov 25 2007, spamfilteraccount@gmail.com wrote:

> On Nov 24, 7:38 pm, Reiner Steib <reinersteib+gm...@imap.cc> wrote:
>> `auto-coding-regexp-alist' in Emacs 22 already has an entry for the
>> BOM: ("\\`\xEF\xBB\xBF" . utf-8).
>
> Yep, it's there, I checked it, but it doesn't trigger opening the file
> in utf-8 mode.

Works for me:

$ echo -e '\xEF\xBB\xBF BOM test' > /tmp/BOM.txt

$ cvs-EMACS_22_BASE/i686$ LC_ALL=C ./src/emacs -Q /tmp/BOM.txt

==> u -- mule-utf-8-unix in the mode line.

So we need a (small) sample file[1] and a recipe to reproduce the
problem starting from emacs -Q.  `M-x report-emacs-bug RET'
additionally provides useful information for the developers.

[1] E.g. the first few lines of your text file.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]