From: Jason Rumney Date: Sat, 20 Dec 2008 09:33:52 +0000 (+0000) Subject: (auto-coding-regexp-alist): Use utf-8-with-signature for files X-Git-Tag: emacs-pretest-23.0.90~953 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c855d68235e7ac1446e571c16f47be5e3e1282e8;p=emacs.git (auto-coding-regexp-alist): Use utf-8-with-signature for files starting with UTF-8 BOM. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2aa4e4def6a..350ef2a3b10 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-12-20 Jason Rumney + + * international/mule.el (auto-coding-regexp-alist): Use + utf-8-with-signature for files starting with UTF-8 BOM. + 2008-12-20 Ami Fischman * bindings.el (mode-line-eol-desc): Use assoc to query diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 9563fa42733..23e3bfa8e4b 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -1600,7 +1600,7 @@ and the contents of `file-coding-system-alist'." '(("^BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion) ("\\`\xFE\xFF" . utf-16be-with-signature) ("\\`\xFF\xFE" . utf-16le-with-signature) - ("\\`\xEF\xBB\xBF" . utf-8) + ("\\`\xEF\xBB\xBF" . utf-8-with-signature) ("\\`;ELC\024\0\0\0" . emacs-mule)) ; Emacs 20-compiled "Alist of patterns vs corresponding coding systems. Each element looks like (REGEXP . CODING-SYSTEM).